﻿<ResourceDictionary   xmlns="http://schemas.microsoft.com/client/2007"
  xmlns:sys="clr-namespace:System;assembly=mscorlib" 
  xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  xmlns:c="clr-namespace:Noboru.Windows.Controls"
  xmlns:vsm="clr-namespace:System.Windows;assembly=System.Windows">

    <Style TargetType="c:DialogControl">
        <Setter Property="Width" Value="500" />
        <Setter Property="Height" Value="300" />
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="c:DialogControl">
                    <Canvas x:Name="BackgroundPart" >
                        <vsm:VisualStateManager.VisualStateGroups>
                            <vsm:VisualStateGroup x:Name="DialogCloseButtonStates">
                                <vsm:VisualStateGroup.Transitions>
                                    <vsm:VisualTransition GeneratedDuration="0:0:.25" />
                                </vsm:VisualStateGroup.Transitions>
                                <vsm:VisualState x:Name="DialogNotModal">
                                </vsm:VisualState>
                                <vsm:VisualState x:Name="DialogModal">
                                </vsm:VisualState>
                                <vsm:VisualState x:Name="DialogModalGray">
                                </vsm:VisualState>
                                <vsm:VisualState x:Name="Focused">
                                </vsm:VisualState>
                                <vsm:VisualState x:Name="Unfocused">
                                </vsm:VisualState>
                                <vsm:VisualState x:Name="DialogCloseButtonNormal">
                                </vsm:VisualState>
                                <vsm:VisualState x:Name="DialogCloseButtonMouseOver">
                                    <Storyboard>
                                        <DoubleAnimation 
                                                    Storyboard.TargetName="DialogCloseButtonGlow" 
                                                    Storyboard.TargetProperty="Opacity" 
                                                    Duration="0" To="1"/>
                                        <DoubleAnimation 
                                                    Storyboard.TargetName="DialogCloseButtonHalo" 
                                                    Storyboard.TargetProperty="Opacity" 
                                                    Duration="0" To=".75"/>
                                        <DoubleAnimation 
                                                    Storyboard.TargetName="DialogCloseButtonHaloYellow" 
                                                    Storyboard.TargetProperty="Opacity" 
                                                    Duration="0" To=".4"/>
                                    </Storyboard>
                                </vsm:VisualState>
                                <vsm:VisualState x:Name="DialogCloseButtonMouseLeftButtonDown">
                                    <Storyboard>
                                        <DoubleAnimation 
                                                    Storyboard.TargetName="DialogCloseButtonDown" 
                                                    Storyboard.TargetProperty="Opacity" 
                                                    Duration="0" To="1"/>
                                        <DoubleAnimation 
                                                    Storyboard.TargetName="DialogCloseButtonHalo" 
                                                    Storyboard.TargetProperty="Opacity" 
                                                    Duration="0" To=".75"/>
                                        <DoubleAnimation 
                                                    Storyboard.TargetName="DialogCloseButtonHaloYellow" 
                                                    Storyboard.TargetProperty="Opacity" 
                                                    Duration="0" To=".4"/>
                                    </Storyboard>
                                </vsm:VisualState>
                            </vsm:VisualStateGroup>
                        </vsm:VisualStateManager.VisualStateGroups>

                        <Canvas x:Name="DialogPart" Height="{TemplateBinding Height}" Width="{TemplateBinding Width}" Background="Transparent" >
                            <c:Shadow CornerRadius="5" ShadowColor="Black" Angle="1" Distance="1" ShadowWidth="16" >
                                <Grid Height="{TemplateBinding Height}" Width="{TemplateBinding Width}">
                                    <Border CornerRadius="10" BorderThickness="1" BorderBrush="White" Opacity="1" />
                                    <Border CornerRadius="10" Opacity="1">
                                        <Border.Background>
                                            <LinearGradientBrush StartPoint="0, 0" EndPoint="0, 1">
                                                <GradientStop Color="#FFD0E7FE"/>
                                                <GradientStop Color="#FFF1F7FD" Offset=".325"/>
                                                <GradientStop Color="#FFCCE3FA" Offset=".325"/>
                                                <GradientStop Color="#FFCEE6FE" Offset="1"/>
                                            </LinearGradientBrush>
                                        </Border.Background>
                                    </Border>
                                    <Border BorderBrush="White" BorderThickness="1" Opacity="1" Margin="6, 25, 6, 6" Background="White" />
                                    <Border BorderBrush="#FF656F7B" BorderThickness="1" Opacity="1" Margin="7, 26, 7, 7" Background="White" >
                                        <ContentControl TabNavigation="Cycle" >
                                            <ContentPresenter />
                                        </ContentControl>
                                    </Border>
                                    <Canvas x:Name="TitleBarPart" Height="26" Background="Transparent" VerticalAlignment="Top">
                                        <Border Padding="8, 0, 0 , 0" VerticalAlignment="Center">
                                            <StackPanel Orientation="Horizontal">
                                                <Image x:Name="TitleImagePart" Margin="0, 4, 4, 0" VerticalAlignment="Center" HorizontalAlignment="Left" Visibility="Collapsed" Source="/Noboru.Windows.Controls;component/images/DefaultDialog.png"/>
                                                <c:Glow GlowColor="#FFEAF4FE" CornerRadius="3" Margin="0,6,0,0" >
                                                    <TextBlock x:Name="TitleTextPart" Foreground="Black" Text="Dialog control title" VerticalAlignment="Center" HorizontalAlignment="Left"/>
                                                </c:Glow>
                                            </StackPanel>
                                        </Border>
                                    </Canvas>
                                    <Canvas x:Name="DialogCloseButtonPart" Width="50" Height="18" HorizontalAlignment="Right" VerticalAlignment="Top" Margin="0, 0, 8, 0">
                                        <c:Glow x:Name="DialogCloseButtonHalo" Opacity="0" GlowColor="#FFDC4B2B" GlowWidth="5" >
                                            <Border Height="18" Width="50" CornerRadius="4" />
                                        </c:Glow>
                                        <Border Width="52" Height="20" BorderBrush="White" BorderThickness="1, 0, 1, 1"  Opacity=".5" CornerRadius="0, 0 , 4, 0" Margin="-1"/>
                                        <Border Width="50" Height="18" BorderBrush="#FF5A5A5B" BorderThickness="1" CornerRadius="0, 0 , 4, 0">
                                            <Border.Background>
                                                <LinearGradientBrush StartPoint="0, 0" EndPoint="0, 1">
                                                    <GradientStop Color="#FFD6A29D"/>
                                                    <GradientStop Color="#FFBD7067" Offset=".5"/>
                                                    <GradientStop Color="#FFBE3E2A" Offset=".5"/>
                                                    <GradientStop Color="#FFC77660" Offset="1"/>
                                                </LinearGradientBrush>
                                            </Border.Background>
                                        </Border>
                                        <Border x:Name="DialogCloseButtonGlow" Height="14" Width="46" CornerRadius="0, 0, 2, 0" Margin="2" Opacity="0">
                                            <Border.Background>
                                                <LinearGradientBrush StartPoint="0, 0" EndPoint="0, 1">
                                                    <GradientStop Color="#FFF49C8C"/>
                                                    <GradientStop Color="#FFE76953" Offset=".5"/>
                                                    <GradientStop Color="#FFD02C0D" Offset=".5"/>
                                                    <GradientStop Color="#FFD26E30" Offset="1"/>
                                                </LinearGradientBrush>
                                            </Border.Background>
                                        </Border>
                                        <Border x:Name="DialogCloseButtonDown" Height="14" Width="46" CornerRadius="0, 0, 2, 0" Margin="2" Opacity="0">
                                            <Border.Background>
                                                <LinearGradientBrush StartPoint="0, 0" EndPoint="0, 1">
                                                    <GradientStop Color="#FFCDA690"/>
                                                    <GradientStop Color="#FFAE6B52" Offset=".5"/>
                                                    <GradientStop Color="#FF8C230C" Offset=".5"/>
                                                    <GradientStop Color="#FF785710" Offset="1"/>
                                                </LinearGradientBrush>
                                            </Border.Background>
                                        </Border>
                                        <Border x:Name="DialogCloseButtonHaloYellow" Opacity="0" Height="9" Width="46" Margin="2, 11, 2, 2" >
                                            <Border.Background>
                                                <RadialGradientBrush GradientOrigin="0.5, 0.5" Center="0.5, 0.5" RadiusX="0.5" RadiusY="0.5">
                                                    <GradientStop Color="Yellow" />
                                                    <GradientStop Color="Transparent" Offset="1"/>
                                                </RadialGradientBrush>
                                            </Border.Background>
                                        </Border>
                                        <Image Width="50" Height="18" Source="/Noboru.Windows.Controls;component/images/DialogButtonX.png" Stretch="None" HorizontalAlignment="Center" VerticalAlignment="Center" />
                                        <Border Width="48" Height="16" CornerRadius="0, 0 , 4, 0" Opacity=".5" BorderBrush="White" BorderThickness="1" Margin="1" />
                                    </Canvas>
                                </Grid>
                            </c:Shadow>
                        </Canvas>
                    </Canvas>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>

    <Style TargetType="c:Glow" >
        <Setter Property="GlowColor" Value="#FFDC4B2B" />
        <Setter Property="GlowWidth" Value="6.0" />
        <Setter Property="GlowOpacity" Value="1.0" />
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="c:Glow">
                    <Canvas x:Name="BackgroundPart" Margin="0" Background="{TemplateBinding GlowColor}" >
                        <Grid x:Name="LayoutPart">
                            <Grid.RenderTransform>
                                <TranslateTransform X="25" Y="25"/>
                            </Grid.RenderTransform>
                            <Grid.RowDefinitions>
                                <RowDefinition Height="25"/>
                                <RowDefinition Height="0"/>
                                <RowDefinition Height="25"/>
                            </Grid.RowDefinitions>
                            <Grid.ColumnDefinitions>
                                <ColumnDefinition Width="25"/>
                                <ColumnDefinition Width="0"/>
                                <ColumnDefinition Width="25"/>
                            </Grid.ColumnDefinitions>
                            <Rectangle x:Name="RectangleTopLeftPart"  Grid.Row="0" Grid.Column="0"  >
                                <Rectangle.Fill>
                                    <RadialGradientBrush>
                                        <RadialGradientBrush.RelativeTransform>
                                            <TransformGroup>
                                                <ScaleTransform CenterX="0.5" CenterY="0.5" ScaleX="2" ScaleY="2"/>
                                                <SkewTransform CenterX="0.5" CenterY="0.5"/>
                                                <RotateTransform CenterX="0.5" CenterY="0.5"/>
                                                <TranslateTransform X="0.5" Y="0.5"/>
                                            </TransformGroup>
                                        </RadialGradientBrush.RelativeTransform>
                                        <GradientStop Color="#FFDC4B2B"/>
                                        <GradientStop Color="Transparent" Offset="1"/>
                                    </RadialGradientBrush>
                                </Rectangle.Fill>
                            </Rectangle>
                            <Rectangle x:Name="RectangleTopPart"  Grid.Row="0" Grid.Column="1">
                                <Rectangle.Fill>
                                    <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
                                        <GradientStop Color="Transparent" Offset="0"/>
                                        <GradientStop Color="#FFDC4B2B" Offset="1"/>
                                    </LinearGradientBrush>
                                </Rectangle.Fill>
                            </Rectangle>
                            <Rectangle x:Name="RectangleTopRightPart"  Grid.Column="2" Grid.Row="0"  >
                                <Rectangle.Fill>
                                    <RadialGradientBrush>
                                        <RadialGradientBrush.RelativeTransform>
                                            <TransformGroup>
                                                <ScaleTransform CenterX="0.5" CenterY="0.5" ScaleX="2" ScaleY="2"/>
                                                <SkewTransform CenterX="0.5" CenterY="0.5"/>
                                                <RotateTransform CenterX="0.5" CenterY="0.5"/>
                                                <TranslateTransform X="-0.5" Y="0.5"/>
                                            </TransformGroup>
                                        </RadialGradientBrush.RelativeTransform>
                                        <GradientStop Color="#FFDC4B2B"/>
                                        <GradientStop Color="Transparent" Offset="1"/>
                                    </RadialGradientBrush>
                                </Rectangle.Fill>
                            </Rectangle>
                            <Rectangle x:Name="RectangleMiddleRightPart" Grid.Row="1" Grid.Column="2">
                                <Rectangle.Fill>
                                    <LinearGradientBrush EndPoint="0,0.5" StartPoint="1,0.5">
                                        <GradientStop Color="Transparent" Offset="0"/>
                                        <GradientStop Color="#FFDC4B2B" Offset="1"/>
                                    </LinearGradientBrush>
                                </Rectangle.Fill>
                            </Rectangle>
                            <Rectangle x:Name="RectangleBottomRightPart" Grid.Column="2" Grid.Row="2"  >
                                <Rectangle.Fill>
                                    <RadialGradientBrush>
                                        <RadialGradientBrush.RelativeTransform>
                                            <TransformGroup>
                                                <ScaleTransform CenterX="0.5" CenterY="0.5" ScaleX="2" ScaleY="2"/>
                                                <SkewTransform CenterX="0.5" CenterY="0.5"/>
                                                <RotateTransform CenterX="0.5" CenterY="0.5"/>
                                                <TranslateTransform X="-0.5" Y="-0.5"/>
                                            </TransformGroup>
                                        </RadialGradientBrush.RelativeTransform>
                                        <GradientStop Color="#FFDC4B2B"/>
                                        <GradientStop Color="Transparent" Offset="1"/>
                                    </RadialGradientBrush>
                                </Rectangle.Fill>
                            </Rectangle>
                            <Rectangle x:Name="RectangleBottomPart" Grid.Row="2" Grid.Column="1">
                                <Rectangle.Fill>
                                    <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
                                        <GradientStop Color="#FFDC4B2B" Offset="0"/>
                                        <GradientStop Color="Transparent" Offset="1"/>
                                    </LinearGradientBrush>
                                </Rectangle.Fill>
                            </Rectangle>
                            <Rectangle x:Name="RectangleBottomLeftPart" Grid.Row="2" Grid.Column="0"  >
                                <Rectangle.Fill>
                                    <RadialGradientBrush>
                                        <RadialGradientBrush.RelativeTransform>
                                            <TransformGroup>
                                                <ScaleTransform CenterX="0.5" CenterY="0.5" ScaleX="2" ScaleY="2"/>
                                                <SkewTransform CenterX="0.5" CenterY="0.5"/>
                                                <RotateTransform CenterX="0.5" CenterY="0.5"/>
                                                <TranslateTransform X="0.5" Y="-0.5"/>
                                            </TransformGroup>
                                        </RadialGradientBrush.RelativeTransform>
                                        <GradientStop Color="#FFDC4B2B"/>
                                        <GradientStop Color="Transparent" Offset="1"/>
                                    </RadialGradientBrush>
                                </Rectangle.Fill>
                            </Rectangle>
                            <Rectangle x:Name="RectangleMiddleLeftPart" Grid.Row="1" Grid.Column="0">
                                <Rectangle.Fill>
                                    <LinearGradientBrush EndPoint="0,0.5" StartPoint="1,0.5">
                                        <GradientStop Color="#FFDC4B2B" Offset="0"/>
                                        <GradientStop Color="Transparent" Offset="1"/>
                                    </LinearGradientBrush>
                                </Rectangle.Fill>
                            </Rectangle>
                            <Rectangle x:Name="RectangleMiddlePart" Grid.Row="1" Grid.Column="1" Fill="#66000000" ></Rectangle>
                        </Grid>
                        <ContentPresenter HorizontalAlignment="Left" VerticalAlignment="Center" Opacity="{TemplateBinding Opacity}" Width="{TemplateBinding Width}" Height="{TemplateBinding Height}" />
                    </Canvas>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>

    <Style TargetType="c:Group">
        <Setter Property="Title" Value="Group" />
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="c:Group">
                    <Border x:Name="BackgroundPart" Width="{TemplateBinding Width}" Height="{TemplateBinding Height}" BorderThickness="0, 0, 1, 1" Padding="1" BorderBrush="#FFE7E9ED" CornerRadius="3" >
                        <vsm:VisualStateManager.VisualStateGroups>
                            <vsm:VisualStateGroup x:Name="CommonStates">
                                <vsm:VisualStateGroup.Transitions>
                                    <vsm:VisualTransition GeneratedDuration="0:0:.25" />
                                </vsm:VisualStateGroup.Transitions>
                                <vsm:VisualState x:Name="Disabled">
                                    <Storyboard>
                                    </Storyboard>
                                </vsm:VisualState>
                                <vsm:VisualState x:Name="MouseOver">
                                    <Storyboard>
                                        <ColorAnimation 
                                            Storyboard.TargetName="BackgroundBorderGradientStop1"
                                            Storyboard.TargetProperty="GradientStop.Color"
                                            To="#FFF5F6F7" />
                                        <ColorAnimation 
                                            Storyboard.TargetName="BackgroundBorderGradientStop2"
                                            Storyboard.TargetProperty="GradientStop.Color"
                                            To="#FFE8E9EC" />
                                        <ColorAnimation 
                                            Storyboard.TargetName="BackgroundBorderGradientStop3"
                                            Storyboard.TargetProperty="GradientStop.Color"
                                            To="#FFE5E7EA" />
                                        <ColorAnimation 
                                            Storyboard.TargetName="BackgroundBorderGradientStop4"
                                            Storyboard.TargetProperty="GradientStop.Color"
                                            To="#FFF4F6F6" />
                                        <ColorAnimation 
                                            Storyboard.TargetName="TitleBorderGradientStop1"
                                            Storyboard.TargetProperty="GradientStop.Color"
                                            To="#FFAAABAB" />
                                        <ColorAnimation 
                                            Storyboard.TargetName="TitleBorderGradientStop2"
                                            Storyboard.TargetProperty="GradientStop.Color"
                                            To="#FF6D6E6E" />
                                    </Storyboard>
                                </vsm:VisualState>
                                <vsm:VisualState x:Name="Normal">
                                    <Storyboard>
                                    </Storyboard>
                                </vsm:VisualState>
                            </vsm:VisualStateGroup>
                            <vsm:VisualStateGroup x:Name="LauncherStates">
                                <vsm:VisualStateGroup.Transitions>
                                    <vsm:VisualTransition GeneratedDuration="0:0:.25" />
                                </vsm:VisualStateGroup.Transitions>
                                <vsm:VisualState x:Name="LauncherNormal">
                                    <Storyboard>
                                    </Storyboard>
                                </vsm:VisualState>
                                <vsm:VisualState x:Name="LauncherMouseOver">
                                    <Storyboard>
                                        <ColorAnimation 
                                            Storyboard.TargetName="LauncherBorderBrush"
                                            Storyboard.TargetProperty="SolidColorBrush.Color"
                                            To="#FFDBCE99" />
                                        <ColorAnimation 
                                            Storyboard.TargetName="LauncherBackgroundBrush"
                                            Storyboard.TargetProperty="SolidColorBrush.Color"
                                            To="#FFFFFFFB" />
                                        <ColorAnimation 
                                            Storyboard.TargetName="LauncherBackgroundBorderGradientStop1"
                                            Storyboard.TargetProperty="GradientStop.Color"
                                            To="#FFFFFCDF" />
                                        <ColorAnimation 
                                            Storyboard.TargetName="LauncherBackgroundBorderGradientStop2"
                                            Storyboard.TargetProperty="GradientStop.Color"
                                            To="#FFFFEFA7" />
                                        <ColorAnimation 
                                            Storyboard.TargetName="LauncherBackgroundBorderGradientStop3"
                                            Storyboard.TargetProperty="GradientStop.Color"
                                            To="#FFFFD975" />
                                        <ColorAnimation 
                                            Storyboard.TargetName="LauncherBackgroundBorderGradientStop4"
                                            Storyboard.TargetProperty="GradientStop.Color"
                                            To="#FFFFE398" />
                                    </Storyboard>
                                </vsm:VisualState>
                            </vsm:VisualStateGroup>
                        </vsm:VisualStateManager.VisualStateGroups>

                        <Border.Background>
                            <LinearGradientBrush EndPoint="0.5, 1" StartPoint="0.5, 0">
                                <GradientStop Color="#FFAEB0B4"/>
                                <GradientStop Color="#FF999B9E" Offset="0.2"/>
                                <GradientStop Color="#FF929498" Offset="0.2"/>
                                <GradientStop Color="#FF777777" Offset="1"/>
                            </LinearGradientBrush>
                        </Border.Background>
                        <Border x:Name="BackgroundBorder" BorderThickness="1, 1, 0, 0" BorderBrush="#FFE7E9ED" CornerRadius="2" >
                            <Border.Background>
                                <LinearGradientBrush EndPoint="0.5, 1" StartPoint="0.5, 0">
                                    <GradientStop Color="#FFCED3DA" x:Name="BackgroundBorderGradientStop1" />
                                    <GradientStop Color="#FFC1C6CF" x:Name="BackgroundBorderGradientStop2" Offset="0.2"/>
                                    <GradientStop Color="#FFB4BBC5" x:Name="BackgroundBorderGradientStop3" Offset="0.2"/>
                                    <GradientStop Color="#FFF0F5F5" x:Name="BackgroundBorderGradientStop4" Offset="1"/>
                                </LinearGradientBrush>
                            </Border.Background>
                            <c:DockPanel LastChildFill="True" Margin="0, 0, 1, 0">
                                <Border c:DockPanel.Dock="Bottom" x:Name="TitleBorder" CornerRadius="0, 0, 2, 2" Margin="-1, 0, -1, 0">
                                    <Border.Background>
                                        <LinearGradientBrush EndPoint="0.5, 1" StartPoint="0.5, 0">
                                            <GradientStop Color="#FFB6B8B8" x:Name="TitleBorderGradientStop1" />
                                            <GradientStop Color="#FF9D9F9F" x:Name="TitleBorderGradientStop2" Offset="1"/>
                                        </LinearGradientBrush>
                                    </Border.Background>
                                    <Grid>
                                        <Grid.RowDefinitions>
                                            <RowDefinition Height="Auto" />
                                        </Grid.RowDefinitions>
                                        <Grid.ColumnDefinitions>
                                            <ColumnDefinition />
                                            <ColumnDefinition Width="Auto" />
                                        </Grid.ColumnDefinitions>
                                        <TextBlock x:Name="TitlePart" Grid.Row="0" Grid.Column="0" Text="{TemplateBinding Title}" Foreground="White" HorizontalAlignment="Center" VerticalAlignment="Center" />
                                        <Border x:Name="LauncherPart" Grid.Row="0" Grid.Column="1" Padding="1" VerticalAlignment="Center" HorizontalAlignment="Right" Margin="4, 0, 2, 0" BorderThickness="1" >
                                            <Border.BorderBrush>
                                                <SolidColorBrush x:Name="LauncherBorderBrush" Color="Transparent" />
                                            </Border.BorderBrush>
                                            <Border.Background>
                                                <SolidColorBrush x:Name="LauncherBackgroundBrush" Color="Transparent" />
                                            </Border.Background>
                                            <Border Padding="2">
                                                <Border.Background>
                                                    <LinearGradientBrush EndPoint="0.5, 1" StartPoint="0.5, 0">
                                                        <GradientStop Color="Transparent" x:Name="LauncherBackgroundBorderGradientStop1" />
                                                        <GradientStop Color="Transparent" x:Name="LauncherBackgroundBorderGradientStop2" Offset="0.5"/>
                                                        <GradientStop Color="Transparent" x:Name="LauncherBackgroundBorderGradientStop3" Offset="0.5"/>
                                                        <GradientStop Color="Transparent" x:Name="LauncherBackgroundBorderGradientStop4" Offset="1"/>
                                                    </LinearGradientBrush>
                                                </Border.Background>
                                                <Image Stretch="None" HorizontalAlignment="Center" VerticalAlignment="Center" Source="/Noboru.Windows.Controls;component/images/GroupLauncher.png" />
                                            </Border>
                                        </Border>
                                    </Grid>
                                </Border>
                                <ContentPresenter x:Name="ContentPart" Margin="{TemplateBinding Padding}" />
                            </c:DockPanel>
                        </Border>
                    </Border>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>

    <Style TargetType="c:GroupBox">
        <Setter Property="BorderBrush" Value="DarkGray" />
        <Setter Property="BorderThickness" Value="1" />
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="c:GroupBox">
                    <Grid x:Name="LayoutPart" Background="{TemplateBinding Background}" Width="{TemplateBinding Width}" Height="{TemplateBinding Height}" >
                        <vsm:VisualStateManager.VisualStateGroups>
                            <vsm:VisualStateGroup x:Name="CommonStates">
                                <vsm:VisualStateGroup.Transitions>
                                    <vsm:VisualTransition GeneratedDuration="0:0:.5" />
                                </vsm:VisualStateGroup.Transitions>
                                <vsm:VisualState x:Name="Normal">
                                    <Storyboard>
                                        <DoubleAnimation 
                                                    Storyboard.TargetName="BorderPart" 
                                                    Storyboard.TargetProperty="Opacity" 
                                                    Duration=".6" To="1"/>
                                        <DoubleAnimation 
                                                    Storyboard.TargetName="TitlePart" 
                                                    Storyboard.TargetProperty="Opacity" 
                                                    Duration=".6" To="1"/>
                                        <DoubleAnimation 
                                                    Storyboard.TargetName="ContentPart" 
                                                    Storyboard.TargetProperty="Opacity" 
                                                    Duration=".6" To="1"/>
                                    </Storyboard>
                                </vsm:VisualState>
                                <vsm:VisualState x:Name="Disabled">
                                    <Storyboard>
                                        <DoubleAnimation 
                                                    Storyboard.TargetName="BorderPart" 
                                                    Storyboard.TargetProperty="Opacity" 
                                                    Duration="1" To=".6"/>
                                        <DoubleAnimation 
                                                    Storyboard.TargetName="TitlePart" 
                                                    Storyboard.TargetProperty="Opacity" 
                                                    Duration="1" To=".6"/>
                                        <DoubleAnimation 
                                                    Storyboard.TargetName="ContentPart" 
                                                    Storyboard.TargetProperty="Opacity" 
                                                    Duration="1" To=".6"/>
                                    </Storyboard>
                                </vsm:VisualState>
                            </vsm:VisualStateGroup>
                        </vsm:VisualStateManager.VisualStateGroups>

                        <Grid.RowDefinitions>
                            <RowDefinition Height="Auto"/>
                            <RowDefinition Height="Auto"/>
                            <RowDefinition Height="*"/>
                        </Grid.RowDefinitions>
                        <Border x:Name="BorderPart" Grid.Row="1" Grid.RowSpan="2" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" CornerRadius="3, 3, 3, 3" Opacity="1" >
                            <Border.Clip>
                                <GeometryGroup FillRule="EvenOdd">
                                    <RectangleGeometry x:Name="ContentRectangleGeometryPart" Rect="0, 0, 300, 200"/>
                                    <RectangleGeometry x:Name="TitleRectangleGeometryPart" Rect="6, 0, 25, 25"/>
                                </GeometryGroup>
                            </Border.Clip>
                        </Border>
                        <ContentPresenter x:Name="ContentPart" Grid.Row="2" Margin="{TemplateBinding Padding}" />
                        <ContentControl x:Name="TitlePart" Grid.Row="0" Grid.RowSpan="2" Margin="6,0,0,0" HorizontalAlignment="Left" IsEnabled="{TemplateBinding IsEnabled}" >
                            <ContentPresenter Content="{TemplateBinding Title}" ContentTemplate="{TemplateBinding TitleTemplate}" Margin="3, 0, 3, 0" />
                        </ContentControl>
                    </Grid>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    
    <Style TargetType="c:HyperlinkLabel">
        <Setter Property="Foreground" Value="Black"/>
        <Setter Property="Padding" Value="2,0,2,0"/>
        <Setter Property="Cursor" Value="Hand"/>
        <Setter Property="HorizontalContentAlignment" Value="Left"/>
        <Setter Property="VerticalContentAlignment" Value="Top"/>
        <Setter Property="Background" Value="Transparent"/>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="HyperlinkButton">
                    <Grid Cursor="{TemplateBinding Cursor}" Background="{TemplateBinding Background}">
                        <VisualStateManager.VisualStateGroups>
                            <VisualStateGroup x:Name="CommonStates">
                                <VisualState x:Name="Normal"/>
                                <VisualState x:Name="MouseOver"/>
                                <VisualState x:Name="Pressed"/>
                                <VisualState x:Name="Disabled">
                                    <Storyboard>
                                        <ObjectAnimationUsingKeyFrames Duration="0" Storyboard.TargetName="DisabledOverlay" Storyboard.TargetProperty="Visibility">
                                            <DiscreteObjectKeyFrame KeyTime="0">
                                                <DiscreteObjectKeyFrame.Value>
                                                    <Visibility>Visible</Visibility>
                                                </DiscreteObjectKeyFrame.Value>
                                            </DiscreteObjectKeyFrame>
                                        </ObjectAnimationUsingKeyFrames>
                                    </Storyboard>
                                </VisualState>
                            </VisualStateGroup>
                            <VisualStateGroup x:Name="FocusStates">
                                <VisualState x:Name="Focused"/>
                                <VisualState x:Name="Unfocused"/>
                            </VisualStateGroup>
                        </VisualStateManager.VisualStateGroups>
                        <TextBlock x:Name="UnderlineTextBlock" HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" Margin="{TemplateBinding Padding}" VerticalAlignment="{TemplateBinding VerticalContentAlignment}" Visibility="Collapsed" Text="{TemplateBinding Content}" />
                        <TextBlock x:Name="DisabledOverlay" HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" Margin="{TemplateBinding Padding}" VerticalAlignment="{TemplateBinding VerticalContentAlignment}" Visibility="Collapsed" Canvas.ZIndex="1" Foreground="#FFAAAAAA" Text="{TemplateBinding Content}"/>
                        <ContentPresenter x:Name="contentPresenter" HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" Margin="{TemplateBinding Padding}" VerticalAlignment="{TemplateBinding VerticalContentAlignment}" Content="{TemplateBinding Content}" ContentTemplate="{TemplateBinding ContentTemplate}"/>
                        <Rectangle x:Name="FocusVisualElement" Stroke="#FF6DBDD1" StrokeThickness="0" IsHitTestVisible="false" Opacity="0"/>
                    </Grid>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>

    <Style TargetType="c:MessageBoxContent">
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="c:MessageBoxContent">
                    <c:DockPanel x:Name="LayoutPart" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" LastChildFill="True" Height="{TemplateBinding Height}" Width="{TemplateBinding Width}" >
                        <vsm:VisualStateManager.VisualStateGroups>
                            <vsm:VisualStateGroup x:Name="MessageBoxTypeStates">
                                <vsm:VisualStateGroup.Transitions>
                                    <vsm:VisualTransition GeneratedDuration="0:0:.25" />
                                </vsm:VisualStateGroup.Transitions>
                                <vsm:VisualState x:Name="None">
                                    <Storyboard>
                                        <ObjectAnimationUsingKeyFrames 
                                            Duration="0" 
                                            Storyboard.TargetName="ImagePart" 
                                            Storyboard.TargetProperty="Visibility">
                                            <DiscreteObjectKeyFrame KeyTime="0" Value="Collapsed" />
                                        </ObjectAnimationUsingKeyFrames>
                                        <ObjectAnimationUsingKeyFrames 
                                            Duration="0" 
                                            Storyboard.TargetName="MessagePart" 
                                            Storyboard.TargetProperty="MaxWidth">
                                            <DiscreteObjectKeyFrame KeyTime="0" Value="450" />
                                        </ObjectAnimationUsingKeyFrames>
                                    </Storyboard>
                                </vsm:VisualState>
                                <vsm:VisualState x:Name="Hand">
                                    <Storyboard>
                                        <ObjectAnimationUsingKeyFrames 
                                            Duration="0" 
                                            Storyboard.TargetName="ImagePart" 
                                            Storyboard.TargetProperty="Visibility">
                                            <DiscreteObjectKeyFrame KeyTime="0" Value="Visible" />
                                        </ObjectAnimationUsingKeyFrames>
                                        <ObjectAnimationUsingKeyFrames 
                                            Duration="0" 
                                            Storyboard.TargetName="ImagePart" 
                                            Storyboard.TargetProperty="Source">
                                            <DiscreteObjectKeyFrame KeyTime="0" Value="/Noboru.Windows.Controls;component/images/Error32.png" />
                                        </ObjectAnimationUsingKeyFrames>
                                        <ObjectAnimationUsingKeyFrames 
                                            Duration="0" 
                                            Storyboard.TargetName="MessagePart" 
                                            Storyboard.TargetProperty="MaxWidth">
                                            <DiscreteObjectKeyFrame KeyTime="0" Value="410" />
                                        </ObjectAnimationUsingKeyFrames>
                                    </Storyboard>
                                </vsm:VisualState>
                                <vsm:VisualState x:Name="Question">
                                    <Storyboard>
                                        <ObjectAnimationUsingKeyFrames 
                                            Duration="0" 
                                            Storyboard.TargetName="ImagePart" 
                                            Storyboard.TargetProperty="Visibility">
                                            <DiscreteObjectKeyFrame KeyTime="0" Value="Visible" />
                                        </ObjectAnimationUsingKeyFrames>
                                        <ObjectAnimationUsingKeyFrames 
                                            Duration="0" 
                                            Storyboard.TargetName="ImagePart" 
                                            Storyboard.TargetProperty="Source">
                                            <DiscreteObjectKeyFrame KeyTime="0" Value="/Noboru.Windows.Controls;component/images/Question32.png" />
                                        </ObjectAnimationUsingKeyFrames>
                                        <ObjectAnimationUsingKeyFrames 
                                            Duration="0" 
                                            Storyboard.TargetName="MessagePart" 
                                            Storyboard.TargetProperty="MaxWidth">
                                            <DiscreteObjectKeyFrame KeyTime="0" Value="410" />
                                        </ObjectAnimationUsingKeyFrames>
                                    </Storyboard>
                                </vsm:VisualState>
                                <vsm:VisualState x:Name="Exclamation">
                                    <Storyboard>
                                        <ObjectAnimationUsingKeyFrames 
                                            Duration="0" 
                                            Storyboard.TargetName="ImagePart" 
                                            Storyboard.TargetProperty="Visibility">
                                            <DiscreteObjectKeyFrame KeyTime="0" Value="Visible" />
                                        </ObjectAnimationUsingKeyFrames>
                                        <ObjectAnimationUsingKeyFrames 
                                            Duration="0" 
                                            Storyboard.TargetName="ImagePart" 
                                            Storyboard.TargetProperty="Source">
                                            <DiscreteObjectKeyFrame KeyTime="0" Value="/Noboru.Windows.Controls;component/images/Warning32.png" />
                                        </ObjectAnimationUsingKeyFrames>
                                        <ObjectAnimationUsingKeyFrames 
                                            Duration="0" 
                                            Storyboard.TargetName="MessagePart" 
                                            Storyboard.TargetProperty="MaxWidth">
                                            <DiscreteObjectKeyFrame KeyTime="0" Value="410" />
                                        </ObjectAnimationUsingKeyFrames>
                                    </Storyboard>
                                </vsm:VisualState>
                                <vsm:VisualState x:Name="Asterisk">
                                    <Storyboard>
                                        <ObjectAnimationUsingKeyFrames 
                                            Duration="0" 
                                            Storyboard.TargetName="ImagePart" 
                                            Storyboard.TargetProperty="Visibility">
                                            <DiscreteObjectKeyFrame KeyTime="0" Value="Visible" />
                                        </ObjectAnimationUsingKeyFrames>
                                        <ObjectAnimationUsingKeyFrames 
                                            Duration="0" 
                                            Storyboard.TargetName="ImagePart" 
                                            Storyboard.TargetProperty="Source">
                                            <DiscreteObjectKeyFrame KeyTime="0" Value="/Noboru.Windows.Controls;component/images/Information32.png" />
                                        </ObjectAnimationUsingKeyFrames>
                                        <ObjectAnimationUsingKeyFrames 
                                            Duration="0" 
                                            Storyboard.TargetName="MessagePart" 
                                            Storyboard.TargetProperty="MaxWidth">
                                            <DiscreteObjectKeyFrame KeyTime="0" Value="410" />
                                        </ObjectAnimationUsingKeyFrames>
                                    </Storyboard>
                                </vsm:VisualState>
                                <vsm:VisualState x:Name="Stop">
                                    <Storyboard>
                                        <ObjectAnimationUsingKeyFrames 
                                            Duration="0" 
                                            Storyboard.TargetName="ImagePart" 
                                            Storyboard.TargetProperty="Visibility">
                                            <DiscreteObjectKeyFrame KeyTime="0" Value="Visible" />
                                        </ObjectAnimationUsingKeyFrames>
                                        <ObjectAnimationUsingKeyFrames 
                                            Duration="0" 
                                            Storyboard.TargetName="ImagePart" 
                                            Storyboard.TargetProperty="Source">
                                            <DiscreteObjectKeyFrame KeyTime="0" Value="/Noboru.Windows.Controls;component/images/Error32.png" />
                                        </ObjectAnimationUsingKeyFrames>
                                        <ObjectAnimationUsingKeyFrames 
                                            Duration="0" 
                                            Storyboard.TargetName="MessagePart" 
                                            Storyboard.TargetProperty="MaxWidth">
                                            <DiscreteObjectKeyFrame KeyTime="0" Value="410" />
                                        </ObjectAnimationUsingKeyFrames>
                                    </Storyboard>
                                </vsm:VisualState>
                                <vsm:VisualState x:Name="Error">
                                    <Storyboard>
                                        <ObjectAnimationUsingKeyFrames 
                                            Duration="0" 
                                            Storyboard.TargetName="ImagePart" 
                                            Storyboard.TargetProperty="Visibility">
                                            <DiscreteObjectKeyFrame KeyTime="0" Value="Visible" />
                                        </ObjectAnimationUsingKeyFrames>
                                        <ObjectAnimationUsingKeyFrames 
                                            Duration="0" 
                                            Storyboard.TargetName="ImagePart" 
                                            Storyboard.TargetProperty="Source">
                                            <DiscreteObjectKeyFrame KeyTime="0" Value="/Noboru.Windows.Controls;component/images/Error32.png" />
                                        </ObjectAnimationUsingKeyFrames>
                                        <ObjectAnimationUsingKeyFrames 
                                            Duration="0" 
                                            Storyboard.TargetName="MessagePart" 
                                            Storyboard.TargetProperty="MaxWidth">
                                            <DiscreteObjectKeyFrame KeyTime="0" Value="410" />
                                        </ObjectAnimationUsingKeyFrames>
                                    </Storyboard>
                                </vsm:VisualState>
                                <vsm:VisualState x:Name="Warning">
                                    <Storyboard>
                                        <ObjectAnimationUsingKeyFrames 
                                            Duration="0" 
                                            Storyboard.TargetName="ImagePart" 
                                            Storyboard.TargetProperty="Visibility">
                                            <DiscreteObjectKeyFrame KeyTime="0" Value="Visible" />
                                        </ObjectAnimationUsingKeyFrames>
                                        <ObjectAnimationUsingKeyFrames 
                                            Duration="0" 
                                            Storyboard.TargetName="ImagePart" 
                                            Storyboard.TargetProperty="Source">
                                            <DiscreteObjectKeyFrame KeyTime="0" Value="/Noboru.Windows.Controls;component/images/Warning32.png" />
                                        </ObjectAnimationUsingKeyFrames>
                                        <ObjectAnimationUsingKeyFrames 
                                            Duration="0" 
                                            Storyboard.TargetName="MessagePart" 
                                            Storyboard.TargetProperty="MaxWidth">
                                            <DiscreteObjectKeyFrame KeyTime="0" Value="410" />
                                        </ObjectAnimationUsingKeyFrames>
                                    </Storyboard>
                                </vsm:VisualState>
                                <vsm:VisualState x:Name="Information">
                                    <Storyboard>
                                        <ObjectAnimationUsingKeyFrames 
                                            Duration="0" 
                                            Storyboard.TargetName="ImagePart" 
                                            Storyboard.TargetProperty="Visibility">
                                            <DiscreteObjectKeyFrame KeyTime="0" Value="Visible" />
                                        </ObjectAnimationUsingKeyFrames>
                                        <ObjectAnimationUsingKeyFrames 
                                            Duration="0" 
                                            Storyboard.TargetName="ImagePart" 
                                            Storyboard.TargetProperty="Source">
                                            <DiscreteObjectKeyFrame KeyTime="0" Value="/Noboru.Windows.Controls;component/images/Information32.png" />
                                        </ObjectAnimationUsingKeyFrames>
                                        <ObjectAnimationUsingKeyFrames 
                                            Duration="0" 
                                            Storyboard.TargetName="MessagePart" 
                                            Storyboard.TargetProperty="MaxWidth">
                                            <DiscreteObjectKeyFrame KeyTime="0" Value="410" />
                                        </ObjectAnimationUsingKeyFrames>
                                    </Storyboard>
                                </vsm:VisualState>
                            </vsm:VisualStateGroup>
                            <vsm:VisualStateGroup x:Name="MessageBoxButtonStates">
                                <vsm:VisualStateGroup.Transitions>
                                    <vsm:VisualTransition GeneratedDuration="0:0:.25" />
                                </vsm:VisualStateGroup.Transitions>
                                <vsm:VisualState x:Name="OK">
                                    <Storyboard>
                                        <ObjectAnimationUsingKeyFrames 
                                            Duration="0" 
                                            Storyboard.TargetName="Button1Part" 
                                            Storyboard.TargetProperty="Content">
                                            <DiscreteObjectKeyFrame KeyTime="0" Value="OK" />
                                        </ObjectAnimationUsingKeyFrames>
                                        <ObjectAnimationUsingKeyFrames 
                                            Duration="0" 
                                            Storyboard.TargetName="Button2Part" 
                                            Storyboard.TargetProperty="Visibility">
                                            <DiscreteObjectKeyFrame KeyTime="0" Value="Collapsed" />
                                        </ObjectAnimationUsingKeyFrames>
                                        <ObjectAnimationUsingKeyFrames 
                                            Duration="0" 
                                            Storyboard.TargetName="Button3Part" 
                                            Storyboard.TargetProperty="Visibility">
                                            <DiscreteObjectKeyFrame KeyTime="0" Value="Collapsed" />
                                        </ObjectAnimationUsingKeyFrames>
                                    </Storyboard>
                                </vsm:VisualState>
                                <vsm:VisualState x:Name="OKCancel">
                                    <Storyboard>
                                        <ObjectAnimationUsingKeyFrames 
                                            Duration="0" 
                                            Storyboard.TargetName="Button1Part" 
                                            Storyboard.TargetProperty="Content">
                                            <DiscreteObjectKeyFrame KeyTime="0" Value="OK" />
                                        </ObjectAnimationUsingKeyFrames>
                                        <ObjectAnimationUsingKeyFrames 
                                            Duration="0" 
                                            Storyboard.TargetName="Button2Part" 
                                            Storyboard.TargetProperty="Content">
                                            <DiscreteObjectKeyFrame KeyTime="0" Value="Cancel" />
                                        </ObjectAnimationUsingKeyFrames>
                                        <ObjectAnimationUsingKeyFrames 
                                            Duration="0" 
                                            Storyboard.TargetName="Button2Part" 
                                            Storyboard.TargetProperty="Visibility">
                                            <DiscreteObjectKeyFrame KeyTime="0" Value="Visible" />
                                        </ObjectAnimationUsingKeyFrames>
                                        <ObjectAnimationUsingKeyFrames 
                                            Duration="0" 
                                            Storyboard.TargetName="Button3Part" 
                                            Storyboard.TargetProperty="Visibility">
                                            <DiscreteObjectKeyFrame KeyTime="0" Value="Collapsed" />
                                        </ObjectAnimationUsingKeyFrames>
                                    </Storyboard>
                                </vsm:VisualState>
                                <vsm:VisualState x:Name="AbortRetryIgnore">
                                    <Storyboard>
                                        <ObjectAnimationUsingKeyFrames 
                                            Duration="0" 
                                            Storyboard.TargetName="Button1Part" 
                                            Storyboard.TargetProperty="Content">
                                            <DiscreteObjectKeyFrame KeyTime="0" Value="Abort" />
                                        </ObjectAnimationUsingKeyFrames>
                                        <ObjectAnimationUsingKeyFrames 
                                            Duration="0" 
                                            Storyboard.TargetName="Button2Part" 
                                            Storyboard.TargetProperty="Content">
                                            <DiscreteObjectKeyFrame KeyTime="0" Value="Retry" />
                                        </ObjectAnimationUsingKeyFrames>
                                        <ObjectAnimationUsingKeyFrames 
                                            Duration="0" 
                                            Storyboard.TargetName="Button3Part" 
                                            Storyboard.TargetProperty="Content">
                                            <DiscreteObjectKeyFrame KeyTime="0" Value="Ignore" />
                                        </ObjectAnimationUsingKeyFrames>
                                        <ObjectAnimationUsingKeyFrames 
                                            Duration="0" 
                                            Storyboard.TargetName="Button2Part" 
                                            Storyboard.TargetProperty="Visibility">
                                            <DiscreteObjectKeyFrame KeyTime="0" Value="Visible" />
                                        </ObjectAnimationUsingKeyFrames>
                                        <ObjectAnimationUsingKeyFrames 
                                            Duration="0" 
                                            Storyboard.TargetName="Button3Part" 
                                            Storyboard.TargetProperty="Visibility">
                                            <DiscreteObjectKeyFrame KeyTime="0" Value="Visible" />
                                        </ObjectAnimationUsingKeyFrames>
                                    </Storyboard>
                                </vsm:VisualState>
                                <vsm:VisualState x:Name="YesNoCancel">
                                    <Storyboard>
                                        <ObjectAnimationUsingKeyFrames 
                                            Duration="0" 
                                            Storyboard.TargetName="Button1Part" 
                                            Storyboard.TargetProperty="Content">
                                            <DiscreteObjectKeyFrame KeyTime="0" Value="Yes" />
                                        </ObjectAnimationUsingKeyFrames>
                                        <ObjectAnimationUsingKeyFrames 
                                            Duration="0" 
                                            Storyboard.TargetName="Button2Part" 
                                            Storyboard.TargetProperty="Content">
                                            <DiscreteObjectKeyFrame KeyTime="0" Value="No" />
                                        </ObjectAnimationUsingKeyFrames>
                                        <ObjectAnimationUsingKeyFrames 
                                            Duration="0" 
                                            Storyboard.TargetName="Button3Part" 
                                            Storyboard.TargetProperty="Content">
                                            <DiscreteObjectKeyFrame KeyTime="0" Value="Cancel" />
                                        </ObjectAnimationUsingKeyFrames>
                                        <ObjectAnimationUsingKeyFrames 
                                            Duration="0" 
                                            Storyboard.TargetName="Button2Part" 
                                            Storyboard.TargetProperty="Visibility">
                                            <DiscreteObjectKeyFrame KeyTime="0" Value="Visible" />
                                        </ObjectAnimationUsingKeyFrames>
                                        <ObjectAnimationUsingKeyFrames 
                                            Duration="0" 
                                            Storyboard.TargetName="Button3Part" 
                                            Storyboard.TargetProperty="Visibility">
                                            <DiscreteObjectKeyFrame KeyTime="0" Value="Visible" />
                                        </ObjectAnimationUsingKeyFrames>
                                    </Storyboard>
                                </vsm:VisualState>
                                <vsm:VisualState x:Name="YesNo">
                                    <Storyboard>
                                        <ObjectAnimationUsingKeyFrames 
                                            Duration="0" 
                                            Storyboard.TargetName="Button1Part" 
                                            Storyboard.TargetProperty="Content">
                                            <DiscreteObjectKeyFrame KeyTime="0" Value="Yes" />
                                        </ObjectAnimationUsingKeyFrames>
                                        <ObjectAnimationUsingKeyFrames 
                                            Duration="0" 
                                            Storyboard.TargetName="Button2Part" 
                                            Storyboard.TargetProperty="Content">
                                            <DiscreteObjectKeyFrame KeyTime="0" Value="No" />
                                        </ObjectAnimationUsingKeyFrames>
                                        <ObjectAnimationUsingKeyFrames 
                                            Duration="0" 
                                            Storyboard.TargetName="Button2Part" 
                                            Storyboard.TargetProperty="Visibility">
                                            <DiscreteObjectKeyFrame KeyTime="0" Value="Visible" />
                                        </ObjectAnimationUsingKeyFrames>
                                        <ObjectAnimationUsingKeyFrames 
                                            Duration="0" 
                                            Storyboard.TargetName="Button3Part" 
                                            Storyboard.TargetProperty="Visibility">
                                            <DiscreteObjectKeyFrame KeyTime="0" Value="Collapsed" />
                                        </ObjectAnimationUsingKeyFrames>
                                    </Storyboard>
                                </vsm:VisualState>
                                <vsm:VisualState x:Name="RetryCancel">
                                    <Storyboard>
                                        <ObjectAnimationUsingKeyFrames 
                                            Duration="0" 
                                            Storyboard.TargetName="Button1Part" 
                                            Storyboard.TargetProperty="Content">
                                            <DiscreteObjectKeyFrame KeyTime="0" Value="Retry" />
                                        </ObjectAnimationUsingKeyFrames>
                                        <ObjectAnimationUsingKeyFrames 
                                            Duration="0" 
                                            Storyboard.TargetName="Button2Part" 
                                            Storyboard.TargetProperty="Content">
                                            <DiscreteObjectKeyFrame KeyTime="0" Value="Cancel" />
                                        </ObjectAnimationUsingKeyFrames>
                                        <ObjectAnimationUsingKeyFrames 
                                            Duration="0" 
                                            Storyboard.TargetName="Button2Part" 
                                            Storyboard.TargetProperty="Visibility">
                                            <DiscreteObjectKeyFrame KeyTime="0" Value="Visible" />
                                        </ObjectAnimationUsingKeyFrames>
                                        <ObjectAnimationUsingKeyFrames 
                                            Duration="0" 
                                            Storyboard.TargetName="Button3Part" 
                                            Storyboard.TargetProperty="Visibility">
                                            <DiscreteObjectKeyFrame KeyTime="0" Value="Collapsed" />
                                        </ObjectAnimationUsingKeyFrames>
                                    </Storyboard>
                                </vsm:VisualState>
                            </vsm:VisualStateGroup>
                        </vsm:VisualStateManager.VisualStateGroups>

                        <Border c:DockPanel.Dock="Bottom" Background="#FFF0F0F0" >
                            <Grid HorizontalAlignment="Right">
                                <Grid.RowDefinitions>
                                    <RowDefinition Height="Auto" />
                                </Grid.RowDefinitions>
                                <Grid.ColumnDefinitions>
                                    <ColumnDefinition Width="Auto" />
                                    <ColumnDefinition Width="Auto" />
                                    <ColumnDefinition Width="Auto" />
                                    <ColumnDefinition Width="Auto" />
                                </Grid.ColumnDefinitions>
                                <Button x:Name="Button3Part" Grid.Row="0" Grid.Column="3" Content="Button 3" Margin="6,10,6,10" Height="28" Width="100" TabIndex="2" />
                                <Button x:Name="Button2Part" Grid.Row="0" Grid.Column="2" Content="Button 2" Margin="6,10,6,10" Height="28" Width="100" TabIndex="1" />
                                <Button x:Name="Button1Part" Grid.Row="0" Grid.Column="1" Content="Button 1" Margin="6,10,6,10" Height="28" Width="100" TabIndex="0" />
                            </Grid>
                        </Border>
                        <StackPanel Orientation="Horizontal" Margin="14" >
                            <Image x:Name="ImagePart" Stretch="None" Source="/Noboru.Windows.Controls;component/images/Information32.png" VerticalAlignment="Top" Margin="0, 0, 8, 0"/>
                            <TextBlock x:Name="MessagePart" Text="Message" TextWrapping="Wrap" MaxWidth="450" />
                        </StackPanel>
                    </c:DockPanel>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>

    <Style TargetType="c:Shadow" >
        <Setter Property="Angle" Value="315.0" />
        <Setter Property="Distance" Value="7.0" />
        <Setter Property="ShadowColor" Value="DarkGray" />
        <Setter Property="ShadowWidth" Value="6.0" />
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="c:Shadow">
                    <Canvas x:Name="BackgroundPart" Margin="0" Background="{TemplateBinding ShadowColor}" >
                        <Grid x:Name="LayoutPart">
                            <Grid.RenderTransform>
                                <TranslateTransform X="25" Y="25"/>
                            </Grid.RenderTransform>
                            <Grid.RowDefinitions>
                                <RowDefinition Height="25"/>
                                <RowDefinition Height="0"/>
                                <RowDefinition Height="25"/>
                            </Grid.RowDefinitions>
                            <Grid.ColumnDefinitions>
                                <ColumnDefinition Width="25"/>
                                <ColumnDefinition Width="0"/>
                                <ColumnDefinition Width="25"/>
                            </Grid.ColumnDefinitions>
                            <Rectangle x:Name="RectangleTopLeftPart"  Grid.Row="0" Grid.Column="0"  >
                                <Rectangle.Fill>
                                    <RadialGradientBrush>
                                        <RadialGradientBrush.RelativeTransform>
                                            <TransformGroup>
                                                <ScaleTransform CenterX="0.5" CenterY="0.5" ScaleX="2" ScaleY="2"/>
                                                <SkewTransform CenterX="0.5" CenterY="0.5"/>
                                                <RotateTransform CenterX="0.5" CenterY="0.5"/>
                                                <TranslateTransform X="0.5" Y="0.5"/>
                                            </TransformGroup>
                                        </RadialGradientBrush.RelativeTransform>
                                        <GradientStop Color="Black"/>
                                        <GradientStop Color="Transparent" Offset="1"/>
                                    </RadialGradientBrush>
                                </Rectangle.Fill>
                            </Rectangle>
                            <Rectangle x:Name="RectangleTopPart"  Grid.Row="0" Grid.Column="1">
                                <Rectangle.Fill>
                                    <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
                                        <GradientStop Color="Transparent" Offset="0"/>
                                        <GradientStop Color="Black" Offset="1"/>
                                    </LinearGradientBrush>
                                </Rectangle.Fill>
                            </Rectangle>
                            <Rectangle x:Name="RectangleTopRightPart"  Grid.Column="2" Grid.Row="0"  >
                                <Rectangle.Fill>
                                    <RadialGradientBrush>
                                        <RadialGradientBrush.RelativeTransform>
                                            <TransformGroup>
                                                <ScaleTransform CenterX="0.5" CenterY="0.5" ScaleX="2" ScaleY="2"/>
                                                <SkewTransform CenterX="0.5" CenterY="0.5"/>
                                                <RotateTransform CenterX="0.5" CenterY="0.5"/>
                                                <TranslateTransform X="-0.5" Y="0.5"/>
                                            </TransformGroup>
                                        </RadialGradientBrush.RelativeTransform>
                                        <GradientStop Color="Black"/>
                                        <GradientStop Color="Transparent" Offset="1"/>
                                    </RadialGradientBrush>
                                </Rectangle.Fill>
                            </Rectangle>
                            <Rectangle x:Name="RectangleMiddleRightPart" Grid.Row="1" Grid.Column="2">
                                <Rectangle.Fill>
                                    <LinearGradientBrush EndPoint="0,0.5" StartPoint="1,0.5">
                                        <GradientStop Color="Transparent" Offset="0"/>
                                        <GradientStop Color="Black" Offset="1"/>
                                    </LinearGradientBrush>
                                </Rectangle.Fill>
                            </Rectangle>
                            <Rectangle x:Name="RectangleBottomRightPart" Grid.Column="2" Grid.Row="2"  >
                                <Rectangle.Fill>
                                    <RadialGradientBrush>
                                        <RadialGradientBrush.RelativeTransform>
                                            <TransformGroup>
                                                <ScaleTransform CenterX="0.5" CenterY="0.5" ScaleX="2" ScaleY="2"/>
                                                <SkewTransform CenterX="0.5" CenterY="0.5"/>
                                                <RotateTransform CenterX="0.5" CenterY="0.5"/>
                                                <TranslateTransform X="-0.5" Y="-0.5"/>
                                            </TransformGroup>
                                        </RadialGradientBrush.RelativeTransform>
                                        <GradientStop Color="Black"/>
                                        <GradientStop Color="Transparent" Offset="1"/>
                                    </RadialGradientBrush>
                                </Rectangle.Fill>
                            </Rectangle>
                            <Rectangle x:Name="RectangleBottomPart" Grid.Row="2" Grid.Column="1">
                                <Rectangle.Fill>
                                    <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
                                        <GradientStop Color="Black" Offset="0"/>
                                        <GradientStop Color="Transparent" Offset="1"/>
                                    </LinearGradientBrush>
                                </Rectangle.Fill>
                            </Rectangle>
                            <Rectangle x:Name="RectangleBottomLeftPart" Grid.Row="2" Grid.Column="0"  >
                                <Rectangle.Fill>
                                    <RadialGradientBrush>
                                        <RadialGradientBrush.RelativeTransform>
                                            <TransformGroup>
                                                <ScaleTransform CenterX="0.5" CenterY="0.5" ScaleX="2" ScaleY="2"/>
                                                <SkewTransform CenterX="0.5" CenterY="0.5"/>
                                                <RotateTransform CenterX="0.5" CenterY="0.5"/>
                                                <TranslateTransform X="0.5" Y="-0.5"/>
                                            </TransformGroup>
                                        </RadialGradientBrush.RelativeTransform>
                                        <GradientStop Color="Black"/>
                                        <GradientStop Color="Transparent" Offset="1"/>
                                    </RadialGradientBrush>
                                </Rectangle.Fill>
                            </Rectangle>
                            <Rectangle x:Name="RectangleMiddleLeftPart" Grid.Row="1" Grid.Column="0">
                                <Rectangle.Fill>
                                    <LinearGradientBrush EndPoint="0,0.5" StartPoint="1,0.5">
                                        <GradientStop Color="Black" Offset="0"/>
                                        <GradientStop Color="Transparent" Offset="1"/>
                                    </LinearGradientBrush>
                                </Rectangle.Fill>
                            </Rectangle>
                            <Rectangle x:Name="RectangleMiddlePart" Grid.Row="1" Grid.Column="1" Fill="#66000000" ></Rectangle>
                        </Grid>
                        <ContentPresenter HorizontalAlignment="Left" Content="{TemplateBinding Content}" VerticalAlignment="Center" Width="{TemplateBinding Width}" Height="{TemplateBinding Height}" />
                    </Canvas>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>

    <Style TargetType="c:ToolStripButton">
        <Setter Property="Padding" Value="3, 1, 3, 1" />
        <Setter Property="BorderThickness" Value="1, 1, 0, 1" />
        <Setter Property="IsChecked" Value="false" />
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="c:ToolStripButton">
                    <Border Height="{TemplateBinding Height}" Width="{TemplateBinding Width}" BorderThickness="{TemplateBinding BorderThickness}" CornerRadius="{TemplateBinding CornerRadius}" >
                        <vsm:VisualStateManager.VisualStateGroups>
                            <vsm:VisualStateGroup x:Name="ToolStripButtonCommonStates">
                                <vsm:VisualStateGroup.Transitions>
                                    <vsm:VisualTransition GeneratedDuration="0:0:.25" />
                                </vsm:VisualStateGroup.Transitions>
                                <vsm:VisualState x:Name="Normal">
                                    <Storyboard>
                                    </Storyboard>
                                </vsm:VisualState>
                                <vsm:VisualState x:Name="MouseOver">
                                    <Storyboard>
                                        <ColorAnimation 
                                            Storyboard.TargetName="BackgroundGradientStop1"
                                            Storyboard.TargetProperty="GradientStop.Color"
                                            To="#FFFDF0E1" />
                                        <ColorAnimation 
                                            Storyboard.TargetName="BackgroundGradientStop2"
                                            Storyboard.TargetProperty="GradientStop.Color"
                                            To="#FFFAE5A8" />
                                        <ColorAnimation 
                                            Storyboard.TargetName="BackgroundGradientStop3"
                                            Storyboard.TargetProperty="GradientStop.Color"
                                            To="#FFFFD048" />
                                        <ColorAnimation 
                                            Storyboard.TargetName="BackgroundGradientStop4"
                                            Storyboard.TargetProperty="GradientStop.Color"
                                            To="#FFFFE59F" />
                                    </Storyboard>
                                </vsm:VisualState>
                                <vsm:VisualState x:Name="Pressed">
                                    <Storyboard>
                                        <ColorAnimation
                                            Duration="0"
                                            Storyboard.TargetName="BackgroundGradientStop1"
                                            Storyboard.TargetProperty="GradientStop.Color"
                                            To="#FFE7A66D" />
                                        <ColorAnimation 
                                            Duration="0"
                                            Storyboard.TargetName="BackgroundGradientStop2"
                                            Storyboard.TargetProperty="GradientStop.Color"
                                            To="#FFFFAA46" />
                                        <ColorAnimation 
                                            Duration="0"
                                            Storyboard.TargetName="BackgroundGradientStop3"
                                            Storyboard.TargetProperty="GradientStop.Color"
                                            To="#FFFF9A23" />
                                        <ColorAnimation 
                                            Duration="0"
                                            Storyboard.TargetName="BackgroundGradientStop4"
                                            Storyboard.TargetProperty="GradientStop.Color"
                                            To="#FFFFC450" />
                                        <ColorAnimation 
                                            Duration="0"
                                            Storyboard.TargetName="BackgroundBorderGradientStop1"
                                            Storyboard.TargetProperty="GradientStop.Color"
                                            To="#FFCC9666" />
                                        <ColorAnimation 
                                            Duration="0"
                                            Storyboard.TargetName="BackgroundBorderGradientStop2"
                                            Storyboard.TargetProperty="GradientStop.Color"
                                            To="#FFCC9666" />
                                        <ColorAnimation 
                                            Duration="0"
                                            Storyboard.TargetName="BackgroundBorderGradientStop3"
                                            Storyboard.TargetProperty="GradientStop.Color"
                                            To="#FFFFB21B" />
                                    </Storyboard>
                                </vsm:VisualState>
                                <vsm:VisualState x:Name="Disabled">
                                    <Storyboard>
                                        <DoubleAnimation 
                                                    Storyboard.TargetName="ImagePart" 
                                                    Storyboard.TargetProperty="Opacity" 
                                                    Duration="0" 
                                                    To=".7"/>
                                    </Storyboard>
                                </vsm:VisualState>
                                <vsm:VisualState x:Name="MouseOverChecked">
                                    <Storyboard>
                                        <ColorAnimation
                                            Duration="0"
                                            Storyboard.TargetName="BackgroundGradientStop1"
                                            Storyboard.TargetProperty="GradientStop.Color"
                                            To="#FFE8AE71" />
                                        <ColorAnimation 
                                            Duration="0"
                                            Storyboard.TargetName="BackgroundGradientStop2"
                                            Storyboard.TargetProperty="GradientStop.Color"
                                            To="#FFFFBD79" />
                                        <ColorAnimation 
                                            Duration="0"
                                            Storyboard.TargetName="BackgroundGradientStop3"
                                            Storyboard.TargetProperty="GradientStop.Color"
                                            To="#FFFEA335" />
                                        <ColorAnimation 
                                            Duration="0"
                                            Storyboard.TargetName="BackgroundGradientStop4"
                                            Storyboard.TargetProperty="GradientStop.Color"
                                            To="#FFFEE069" />
                                        <ColorAnimation 
                                            Duration="0"
                                            Storyboard.TargetName="BackgroundBorderGradientStop1"
                                            Storyboard.TargetProperty="GradientStop.Color"
                                            To="#FFCC985F" />
                                        <ColorAnimation 
                                            Duration="0"
                                            Storyboard.TargetName="BackgroundBorderGradientStop2"
                                            Storyboard.TargetProperty="GradientStop.Color"
                                            To="#FFCC985F" />
                                        <ColorAnimation 
                                            Duration="0"
                                            Storyboard.TargetName="BackgroundBorderGradientStop3"
                                            Storyboard.TargetProperty="GradientStop.Color"
                                            To="#FFFCCE6B" />
                                    </Storyboard>
                                </vsm:VisualState>
                                <vsm:VisualState x:Name="Checked">
                                    <Storyboard>
                                        <ColorAnimation
                                            Duration="0"
                                            Storyboard.TargetName="BackgroundGradientStop1"
                                            Storyboard.TargetProperty="GradientStop.Color"
                                            To="#FFFBDBB5" />
                                        <ColorAnimation 
                                            Duration="0"
                                            Storyboard.TargetName="BackgroundGradientStop2"
                                            Storyboard.TargetProperty="GradientStop.Color"
                                            To="#FFFEC778" />
                                        <ColorAnimation 
                                            Duration="0"
                                            Storyboard.TargetName="BackgroundGradientStop3"
                                            Storyboard.TargetProperty="GradientStop.Color"
                                            To="#FFFEB456" />
                                        <ColorAnimation 
                                            Duration="0"
                                            Storyboard.TargetName="BackgroundGradientStop4"
                                            Storyboard.TargetProperty="GradientStop.Color"
                                            To="#FFFDEB9F" />
                                        <ColorAnimation 
                                            Duration="0"
                                            Storyboard.TargetName="BackgroundBorderGradientStop1"
                                            Storyboard.TargetProperty="GradientStop.Color"
                                            To="#FFFEC778" />
                                        <ColorAnimation 
                                            Duration="0"
                                            Storyboard.TargetName="BackgroundBorderGradientStop2"
                                            Storyboard.TargetProperty="GradientStop.Color"
                                            To="#FFCBB499" />
                                        <ColorAnimation 
                                            Duration="0"
                                            Storyboard.TargetName="BackgroundBorderGradientStop3"
                                            Storyboard.TargetProperty="GradientStop.Color"
                                            To="#FFFEC778" />
                                    </Storyboard>
                                </vsm:VisualState>
                                <vsm:VisualState x:Name="Unchecked">
                                </vsm:VisualState>
                                <vsm:VisualState x:Name="FocusedChecked">
                                    <Storyboard>
                                        <ColorAnimation
                                            Duration="0"
                                            Storyboard.TargetName="BackgroundGradientStop1"
                                            Storyboard.TargetProperty="GradientStop.Color"
                                            To="#FFE8AE71" />
                                        <ColorAnimation 
                                            Duration="0"
                                            Storyboard.TargetName="BackgroundGradientStop2"
                                            Storyboard.TargetProperty="GradientStop.Color"
                                            To="#FFFFBD79" />
                                        <ColorAnimation 
                                            Duration="0"
                                            Storyboard.TargetName="BackgroundGradientStop3"
                                            Storyboard.TargetProperty="GradientStop.Color"
                                            To="#FFFEA335" />
                                        <ColorAnimation 
                                            Duration="0"
                                            Storyboard.TargetName="BackgroundGradientStop4"
                                            Storyboard.TargetProperty="GradientStop.Color"
                                            To="#FFFEE069" />
                                        <ColorAnimation 
                                            Duration="0"
                                            Storyboard.TargetName="BackgroundBorderGradientStop1"
                                            Storyboard.TargetProperty="GradientStop.Color"
                                            To="#FFCC985F" />
                                        <ColorAnimation 
                                            Duration="0"
                                            Storyboard.TargetName="BackgroundBorderGradientStop2"
                                            Storyboard.TargetProperty="GradientStop.Color"
                                            To="#FFCC985F" />
                                        <ColorAnimation 
                                            Duration="0"
                                            Storyboard.TargetName="BackgroundBorderGradientStop3"
                                            Storyboard.TargetProperty="GradientStop.Color"
                                            To="#FFFCCE6B" />
                                    </Storyboard>
                                </vsm:VisualState>
                                <vsm:VisualState x:Name="Focused">
                                    <Storyboard>
                                        <ColorAnimation 
                                        Storyboard.TargetName="BackgroundGradientStop1"
                                        Storyboard.TargetProperty="GradientStop.Color"
                                        To="#FFFDF0E1" />
                                        <ColorAnimation 
                                        Storyboard.TargetName="BackgroundGradientStop2"
                                        Storyboard.TargetProperty="GradientStop.Color"
                                        To="#FFFAE5A8" />
                                        <ColorAnimation 
                                        Storyboard.TargetName="BackgroundGradientStop3"
                                        Storyboard.TargetProperty="GradientStop.Color"
                                        To="#FFFFD048" />
                                        <ColorAnimation 
                                        Storyboard.TargetName="BackgroundGradientStop4"
                                        Storyboard.TargetProperty="GradientStop.Color"
                                        To="#FFFFE59F" />
                                    </Storyboard>
                                </vsm:VisualState>
                                <vsm:VisualState x:Name="Unfocused">
                                    <Storyboard>
                                    </Storyboard>
                                </vsm:VisualState>
                            </vsm:VisualStateGroup>
                        </vsm:VisualStateManager.VisualStateGroups>

                        <Border.BorderBrush>
                            <LinearGradientBrush EndPoint="0.5, 1" StartPoint="0.5, 0">
                                <GradientStop Color="#FFB3BCBF"/>
                                <GradientStop Color="#FF919A9E" Offset="0.5"/>
                                <GradientStop Color="#FFB5BFC2" Offset="1"/>
                            </LinearGradientBrush>
                        </Border.BorderBrush>
                        <Border BorderThickness="1" CornerRadius="{TemplateBinding CornerRadius}" Padding="{TemplateBinding Padding}" >
                            <Border.Background>
                                <LinearGradientBrush EndPoint="0.5, 1" StartPoint="0.5, 0">
                                    <GradientStop x:Name="BackgroundGradientStop1" Color="#FFD6DEDF"/>
                                    <GradientStop x:Name="BackgroundGradientStop2" Color="#FFDBE2E4" Offset="0.4"/>
                                    <GradientStop x:Name="BackgroundGradientStop3" Color="#FFD2D9DB" Offset="0.4"/>
                                    <GradientStop x:Name="BackgroundGradientStop4" Color="#FFE0E5E7" Offset="1"/>
                                </LinearGradientBrush>
                            </Border.Background>
                            <Border.BorderBrush>
                                <LinearGradientBrush EndPoint="1, 0.5" StartPoint="0, 0.5" >
                                    <GradientStop x:Name="BackgroundBorderGradientStop1" Color="#FFE7EBEC"/>
                                    <GradientStop x:Name="BackgroundBorderGradientStop2" Color="#FFEDF0F1" Offset="0.8"/>
                                    <GradientStop x:Name="BackgroundBorderGradientStop3" Color="#FFCAD2D4" Offset="1"/>
                                </LinearGradientBrush>
                            </Border.BorderBrush>
                            <Grid x:Name="LayoutPart" Background="Transparent" >
                                <Grid.RowDefinitions>
                                    <RowDefinition Height="Auto" />
                                    <RowDefinition Height="Auto" />
                                </Grid.RowDefinitions>
                                <Grid.ColumnDefinitions>
                                    <ColumnDefinition Width="Auto" />
                                    <ColumnDefinition Width="Auto" />
                                </Grid.ColumnDefinitions>
                                <Image x:Name="ImagePart" Grid.Column="0" Grid.Row="0" Source="/Noboru.Windows.Controls;component/images/DefaultToolStripButton.png" HorizontalAlignment="Center" VerticalAlignment="Center" Stretch="None" />
                                <TextBlock x:Name="TextPart" Grid.Column="1" Grid.Row="0" />
                            </Grid>
                        </Border>
                    </Border>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>

    <Style TargetType="c:ToolStripHyperlinkButton">
        <Setter Property="Padding" Value="3, 1, 3, 1" />
        <Setter Property="BorderThickness" Value="1, 1, 0, 1" />
        <Setter Property="IsChecked" Value="false" />
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="c:ToolStripHyperlinkButton">
                    <Border Height="{TemplateBinding Height}" Width="{TemplateBinding Width}" BorderThickness="{TemplateBinding BorderThickness}" CornerRadius="{TemplateBinding CornerRadius}" >
                        <vsm:VisualStateManager.VisualStateGroups>
                            <vsm:VisualStateGroup x:Name="ToolStripHyperlinkButtonCommonStates">
                                <vsm:VisualStateGroup.Transitions>
                                    <vsm:VisualTransition GeneratedDuration="0:0:.25" />
                                </vsm:VisualStateGroup.Transitions>
                                <vsm:VisualState x:Name="Normal">
                                    <Storyboard>
                                    </Storyboard>
                                </vsm:VisualState>
                                <vsm:VisualState x:Name="MouseOver">
                                    <Storyboard>
                                        <ColorAnimation 
                                            Storyboard.TargetName="BackgroundGradientStop1"
                                            Storyboard.TargetProperty="GradientStop.Color"
                                            To="#FFFDF0E1" />
                                        <ColorAnimation 
                                            Storyboard.TargetName="BackgroundGradientStop2"
                                            Storyboard.TargetProperty="GradientStop.Color"
                                            To="#FFFAE5A8" />
                                        <ColorAnimation 
                                            Storyboard.TargetName="BackgroundGradientStop3"
                                            Storyboard.TargetProperty="GradientStop.Color"
                                            To="#FFFFD048" />
                                        <ColorAnimation 
                                            Storyboard.TargetName="BackgroundGradientStop4"
                                            Storyboard.TargetProperty="GradientStop.Color"
                                            To="#FFFFE59F" />
                                    </Storyboard>
                                </vsm:VisualState>
                                <vsm:VisualState x:Name="Pressed">
                                    <Storyboard>
                                        <ColorAnimation
                                            Duration="0"
                                            Storyboard.TargetName="BackgroundGradientStop1"
                                            Storyboard.TargetProperty="GradientStop.Color"
                                            To="#FFE7A66D" />
                                        <ColorAnimation 
                                            Duration="0"
                                            Storyboard.TargetName="BackgroundGradientStop2"
                                            Storyboard.TargetProperty="GradientStop.Color"
                                            To="#FFFFAA46" />
                                        <ColorAnimation 
                                            Duration="0"
                                            Storyboard.TargetName="BackgroundGradientStop3"
                                            Storyboard.TargetProperty="GradientStop.Color"
                                            To="#FFFF9A23" />
                                        <ColorAnimation 
                                            Duration="0"
                                            Storyboard.TargetName="BackgroundGradientStop4"
                                            Storyboard.TargetProperty="GradientStop.Color"
                                            To="#FFFFC450" />
                                        <ColorAnimation 
                                            Duration="0"
                                            Storyboard.TargetName="BackgroundBorderGradientStop1"
                                            Storyboard.TargetProperty="GradientStop.Color"
                                            To="#FFCC9666" />
                                        <ColorAnimation 
                                            Duration="0"
                                            Storyboard.TargetName="BackgroundBorderGradientStop2"
                                            Storyboard.TargetProperty="GradientStop.Color"
                                            To="#FFCC9666" />
                                        <ColorAnimation 
                                            Duration="0"
                                            Storyboard.TargetName="BackgroundBorderGradientStop3"
                                            Storyboard.TargetProperty="GradientStop.Color"
                                            To="#FFFFB21B" />
                                    </Storyboard>
                                </vsm:VisualState>
                                <vsm:VisualState x:Name="Disabled">
                                    <Storyboard>
                                        <DoubleAnimation 
                                                    Storyboard.TargetName="ImagePart" 
                                                    Storyboard.TargetProperty="Opacity" 
                                                    Duration="0" 
                                                    To=".7"/>
                                    </Storyboard>
                                </vsm:VisualState>
                                <vsm:VisualState x:Name="MouseOverChecked">
                                    <Storyboard>
                                        <ColorAnimation
                                            Duration="0"
                                            Storyboard.TargetName="BackgroundGradientStop1"
                                            Storyboard.TargetProperty="GradientStop.Color"
                                            To="#FFE8AE71" />
                                        <ColorAnimation 
                                            Duration="0"
                                            Storyboard.TargetName="BackgroundGradientStop2"
                                            Storyboard.TargetProperty="GradientStop.Color"
                                            To="#FFFFBD79" />
                                        <ColorAnimation 
                                            Duration="0"
                                            Storyboard.TargetName="BackgroundGradientStop3"
                                            Storyboard.TargetProperty="GradientStop.Color"
                                            To="#FFFEA335" />
                                        <ColorAnimation 
                                            Duration="0"
                                            Storyboard.TargetName="BackgroundGradientStop4"
                                            Storyboard.TargetProperty="GradientStop.Color"
                                            To="#FFFEE069" />
                                        <ColorAnimation 
                                            Duration="0"
                                            Storyboard.TargetName="BackgroundBorderGradientStop1"
                                            Storyboard.TargetProperty="GradientStop.Color"
                                            To="#FFCC985F" />
                                        <ColorAnimation 
                                            Duration="0"
                                            Storyboard.TargetName="BackgroundBorderGradientStop2"
                                            Storyboard.TargetProperty="GradientStop.Color"
                                            To="#FFCC985F" />
                                        <ColorAnimation 
                                            Duration="0"
                                            Storyboard.TargetName="BackgroundBorderGradientStop3"
                                            Storyboard.TargetProperty="GradientStop.Color"
                                            To="#FFFCCE6B" />
                                    </Storyboard>
                                </vsm:VisualState>
                                <vsm:VisualState x:Name="Checked">
                                    <Storyboard>
                                        <ColorAnimation
                                            Duration="0"
                                            Storyboard.TargetName="BackgroundGradientStop1"
                                            Storyboard.TargetProperty="GradientStop.Color"
                                            To="#FFFBDBB5" />
                                        <ColorAnimation 
                                            Duration="0"
                                            Storyboard.TargetName="BackgroundGradientStop2"
                                            Storyboard.TargetProperty="GradientStop.Color"
                                            To="#FFFEC778" />
                                        <ColorAnimation 
                                            Duration="0"
                                            Storyboard.TargetName="BackgroundGradientStop3"
                                            Storyboard.TargetProperty="GradientStop.Color"
                                            To="#FFFEB456" />
                                        <ColorAnimation 
                                            Duration="0"
                                            Storyboard.TargetName="BackgroundGradientStop4"
                                            Storyboard.TargetProperty="GradientStop.Color"
                                            To="#FFFDEB9F" />
                                        <ColorAnimation 
                                            Duration="0"
                                            Storyboard.TargetName="BackgroundBorderGradientStop1"
                                            Storyboard.TargetProperty="GradientStop.Color"
                                            To="#FFFEC778" />
                                        <ColorAnimation 
                                            Duration="0"
                                            Storyboard.TargetName="BackgroundBorderGradientStop2"
                                            Storyboard.TargetProperty="GradientStop.Color"
                                            To="#FFCBB499" />
                                        <ColorAnimation 
                                            Duration="0"
                                            Storyboard.TargetName="BackgroundBorderGradientStop3"
                                            Storyboard.TargetProperty="GradientStop.Color"
                                            To="#FFFEC778" />
                                    </Storyboard>
                                </vsm:VisualState>
                                <vsm:VisualState x:Name="Unchecked">
                                </vsm:VisualState>
                                <vsm:VisualState x:Name="FocusedChecked">
                                    <Storyboard>
                                        <ColorAnimation
                                            Duration="0"
                                            Storyboard.TargetName="BackgroundGradientStop1"
                                            Storyboard.TargetProperty="GradientStop.Color"
                                            To="#FFE8AE71" />
                                        <ColorAnimation 
                                            Duration="0"
                                            Storyboard.TargetName="BackgroundGradientStop2"
                                            Storyboard.TargetProperty="GradientStop.Color"
                                            To="#FFFFBD79" />
                                        <ColorAnimation 
                                            Duration="0"
                                            Storyboard.TargetName="BackgroundGradientStop3"
                                            Storyboard.TargetProperty="GradientStop.Color"
                                            To="#FFFEA335" />
                                        <ColorAnimation 
                                            Duration="0"
                                            Storyboard.TargetName="BackgroundGradientStop4"
                                            Storyboard.TargetProperty="GradientStop.Color"
                                            To="#FFFEE069" />
                                        <ColorAnimation 
                                            Duration="0"
                                            Storyboard.TargetName="BackgroundBorderGradientStop1"
                                            Storyboard.TargetProperty="GradientStop.Color"
                                            To="#FFCC985F" />
                                        <ColorAnimation 
                                            Duration="0"
                                            Storyboard.TargetName="BackgroundBorderGradientStop2"
                                            Storyboard.TargetProperty="GradientStop.Color"
                                            To="#FFCC985F" />
                                        <ColorAnimation 
                                            Duration="0"
                                            Storyboard.TargetName="BackgroundBorderGradientStop3"
                                            Storyboard.TargetProperty="GradientStop.Color"
                                            To="#FFFCCE6B" />
                                    </Storyboard>
                                </vsm:VisualState>
                                <vsm:VisualState x:Name="Focused">
                                    <Storyboard>
                                        <ColorAnimation 
                                        Storyboard.TargetName="BackgroundGradientStop1"
                                        Storyboard.TargetProperty="GradientStop.Color"
                                        To="#FFFDF0E1" />
                                        <ColorAnimation 
                                        Storyboard.TargetName="BackgroundGradientStop2"
                                        Storyboard.TargetProperty="GradientStop.Color"
                                        To="#FFFAE5A8" />
                                        <ColorAnimation 
                                        Storyboard.TargetName="BackgroundGradientStop3"
                                        Storyboard.TargetProperty="GradientStop.Color"
                                        To="#FFFFD048" />
                                        <ColorAnimation 
                                        Storyboard.TargetName="BackgroundGradientStop4"
                                        Storyboard.TargetProperty="GradientStop.Color"
                                        To="#FFFFE59F" />
                                    </Storyboard>
                                </vsm:VisualState>
                                <vsm:VisualState x:Name="Unfocused">
                                    <Storyboard>
                                    </Storyboard>
                                </vsm:VisualState>
                            </vsm:VisualStateGroup>
                        </vsm:VisualStateManager.VisualStateGroups>

                        <Border.BorderBrush>
                            <LinearGradientBrush EndPoint="0.5, 1" StartPoint="0.5, 0">
                                <GradientStop Color="#FFB3BCBF"/>
                                <GradientStop Color="#FF919A9E" Offset="0.5"/>
                                <GradientStop Color="#FFB5BFC2" Offset="1"/>
                            </LinearGradientBrush>
                        </Border.BorderBrush>
                        <Border BorderThickness="1" CornerRadius="{TemplateBinding CornerRadius}" Padding="{TemplateBinding Padding}" >
                            <Border.Background>
                                <LinearGradientBrush EndPoint="0.5, 1" StartPoint="0.5, 0">
                                    <GradientStop x:Name="BackgroundGradientStop1" Color="#FFD6DEDF"/>
                                    <GradientStop x:Name="BackgroundGradientStop2" Color="#FFDBE2E4" Offset="0.4"/>
                                    <GradientStop x:Name="BackgroundGradientStop3" Color="#FFD2D9DB" Offset="0.4"/>
                                    <GradientStop x:Name="BackgroundGradientStop4" Color="#FFE0E5E7" Offset="1"/>
                                </LinearGradientBrush>
                            </Border.Background>
                            <Border.BorderBrush>
                                <LinearGradientBrush EndPoint="1, 0.5" StartPoint="0, 0.5" >
                                    <GradientStop x:Name="BackgroundBorderGradientStop1" Color="#FFE7EBEC"/>
                                    <GradientStop x:Name="BackgroundBorderGradientStop2" Color="#FFEDF0F1" Offset="0.8"/>
                                    <GradientStop x:Name="BackgroundBorderGradientStop3" Color="#FFCAD2D4" Offset="1"/>
                                </LinearGradientBrush>
                            </Border.BorderBrush>
                            <Grid x:Name="LayoutPart" Background="Transparent" >
                                <Grid.RowDefinitions>
                                    <RowDefinition Height="Auto" />
                                    <RowDefinition Height="Auto" />
                                </Grid.RowDefinitions>
                                <Grid.ColumnDefinitions>
                                    <ColumnDefinition Width="Auto" />
                                    <ColumnDefinition Width="Auto" />
                                </Grid.ColumnDefinitions>
                                <Image x:Name="ImagePart" Grid.Column="0" Grid.Row="0" Source="/Noboru.Windows.Controls;component/images/DefaultToolStripButton.png" HorizontalAlignment="Center" VerticalAlignment="Center" Stretch="None" />
                                <c:HyperlinkLabel x:Name="TextPart" Grid.Column="1" Grid.Row="0" NavigateUri="{TemplateBinding NavigateUri}" TargetName="{TemplateBinding TargetName}" />
                            </Grid>
                        </Border>
                    </Border>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>

    <Style TargetType="c:ToolStripHyperlinkLabel">
        <Setter Property="Foreground" Value="#FF15428B" />
        <Setter Property="IsChecked" Value="false" />
        <Setter Property="ImageMargin" Value="1" />
        <Setter Property="TextMargin" Value="2, 1, 2, 1" />
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="c:ToolStripHyperlinkLabel">
                    <Border x:Name="HighlightPart" Grid.Row="0" Grid.Column="0" Grid.RowSpan="2" Grid.ColumnSpan="2" HorizontalAlignment="Center" VerticalAlignment="Center" CornerRadius="2" Padding="1,1,1,1">
                        <vsm:VisualStateManager.VisualStateGroups>
                            <vsm:VisualStateGroup x:Name="ToolStripHyperlinkLabelCommonStates">
                                <vsm:VisualStateGroup.Transitions>
                                    <vsm:VisualTransition GeneratedDuration="0:0:.3" />
                                </vsm:VisualStateGroup.Transitions>
                                <vsm:VisualState x:Name="Normal">
                                    <Storyboard>
                                    </Storyboard>
                                </vsm:VisualState>
                                <vsm:VisualState x:Name="MouseOver">
                                    <Storyboard>
                                        <ColorAnimation 
                                            Storyboard.TargetName="BorderGradientStop1"
                                            Storyboard.TargetProperty="GradientStop.Color"
                                            To="#FFDBCE99" />
                                        <ColorAnimation 
                                            Storyboard.TargetName="BorderGradientStop2"
                                            Storyboard.TargetProperty="GradientStop.Color"
                                            To="#FFB59C73" />
                                        <ColorAnimation 
                                            Storyboard.TargetName="BorderGradientStop3"
                                            Storyboard.TargetProperty="GradientStop.Color"
                                            To="#FFBCAB8D" />
                                        <ColorAnimation 
                                            Storyboard.TargetName="BorderHighlightGradientStop1"
                                            Storyboard.TargetProperty="GradientStop.Color"
                                            To="#FFFFFFFB" />
                                        <ColorAnimation 
                                            Storyboard.TargetName="BorderHighlightGradientStop2"
                                            Storyboard.TargetProperty="GradientStop.Color"
                                            To="#FFFFF9E3" />
                                        <ColorAnimation 
                                            Storyboard.TargetName="BorderHighlightGradientStop3"
                                            Storyboard.TargetProperty="GradientStop.Color"
                                            To="#FFFFF2C9" />
                                        <ColorAnimation 
                                            Storyboard.TargetName="BorderHighlightGradientStop4"
                                            Storyboard.TargetProperty="GradientStop.Color"
                                            To="#FFFFF6B9" />
                                        <ColorAnimation 
                                            Storyboard.TargetName="BackgroundGradientStop1"
                                            Storyboard.TargetProperty="GradientStop.Color"
                                            To="#FFFFFEED" />
                                        <ColorAnimation 
                                            Storyboard.TargetName="BackgroundGradientStop2"
                                            Storyboard.TargetProperty="GradientStop.Color"
                                            To="#FFFFEDB8" />
                                        <ColorAnimation 
                                            Storyboard.TargetName="BackgroundGradientStop3"
                                            Storyboard.TargetProperty="GradientStop.Color"
                                            To="#FFFFD842" />
                                        <ColorAnimation 
                                            Storyboard.TargetName="BackgroundGradientStop4"
                                            Storyboard.TargetProperty="GradientStop.Color"
                                            To="#FFFFE47B" />
                                        <ColorAnimation 
                                            Storyboard.TargetName="RadialColor"
                                            Storyboard.TargetProperty="GradientStop.Color"
                                            To="#FFFFE9A4" />
                                    </Storyboard>
                                </vsm:VisualState>
                                <vsm:VisualState x:Name="MouseOverChecked">
                                    <Storyboard>
                                        <ColorAnimation 
                                        Storyboard.TargetName="BorderGradientStop1"
                                        Storyboard.TargetProperty="GradientStop.Color"
                                        To="#FF9E8255" />
                                        <ColorAnimation 
                                        Storyboard.TargetName="BorderGradientStop2"
                                        Storyboard.TargetProperty="GradientStop.Color"
                                        To="#FF9E8255" />
                                        <ColorAnimation 
                                        Storyboard.TargetName="BorderGradientStop3"
                                        Storyboard.TargetProperty="GradientStop.Color"
                                        To="#FFD4C5AD" />
                                        <ColorAnimation 
                                        Storyboard.TargetName="BorderHighlightGradientStop1"
                                        Storyboard.TargetProperty="GradientStop.Color"
                                        To="#FFBD8C46" />
                                        <ColorAnimation 
                                        Storyboard.TargetName="BorderHighlightGradientStop2"
                                        Storyboard.TargetProperty="GradientStop.Color"
                                        To="#FFFAD187" />
                                        <ColorAnimation 
                                        Storyboard.TargetName="BorderHighlightGradientStop3"
                                        Storyboard.TargetProperty="GradientStop.Color"
                                        To="#FFFACB7B" />
                                        <ColorAnimation 
                                        Storyboard.TargetName="BorderHighlightGradientStop4"
                                        Storyboard.TargetProperty="GradientStop.Color"
                                        To="#FFFFAD3A" />
                                        <ColorAnimation 
                                        Storyboard.TargetName="BackgroundGradientStop1"
                                        Storyboard.TargetProperty="GradientStop.Color"
                                        To="#FFDEA457" />
                                        <ColorAnimation 
                                        Storyboard.TargetName="BackgroundGradientStop2"
                                        Storyboard.TargetProperty="GradientStop.Color"
                                        To="#FFFCAF59" />
                                        <ColorAnimation 
                                        Storyboard.TargetName="BackgroundGradientStop3"
                                        Storyboard.TargetProperty="GradientStop.Color"
                                        To="#FFF58E2D" />
                                        <ColorAnimation 
                                        Storyboard.TargetName="BackgroundGradientStop4"
                                        Storyboard.TargetProperty="GradientStop.Color"
                                        To="#FFF69C19" />
                                        <ColorAnimation 
                                        Storyboard.TargetName="RadialColor"
                                        Storyboard.TargetProperty="GradientStop.Color"
                                        To="#FFFBAD1A" />
                                    </Storyboard>
                                </vsm:VisualState>
                                <vsm:VisualState x:Name="Pressed">
                                    <Storyboard>
                                        <ColorAnimation 
                                            Storyboard.TargetName="BorderGradientStop1"
                                            Storyboard.TargetProperty="GradientStop.Color"
                                            To="#FF7B6645" Duration="0" />
                                        <ColorAnimation 
                                            Storyboard.TargetName="BorderGradientStop2"
                                            Storyboard.TargetProperty="GradientStop.Color"
                                            To="#FF7B6645" Duration="0" />
                                        <ColorAnimation 
                                            Storyboard.TargetName="BorderGradientStop3"
                                            Storyboard.TargetProperty="GradientStop.Color"
                                            To="#FF7B6645" Duration="0" />
                                        <ColorAnimation 
                                            Storyboard.TargetName="BorderHighlightGradientStop1"
                                            Storyboard.TargetProperty="GradientStop.Color"
                                            To="#FFB2855C" Duration="0" />
                                        <ColorAnimation 
                                            Storyboard.TargetName="BorderHighlightGradientStop2"
                                            Storyboard.TargetProperty="GradientStop.Color"
                                            To="#FFF1963B" Duration="0" />
                                        <ColorAnimation 
                                            Storyboard.TargetName="BorderHighlightGradientStop3"
                                            Storyboard.TargetProperty="GradientStop.Color"
                                            To="#FFED7804" Duration="0" />
                                        <ColorAnimation 
                                            Storyboard.TargetName="BorderHighlightGradientStop4"
                                            Storyboard.TargetProperty="GradientStop.Color"
                                            To="#FFFDAD03" Duration="0" />
                                        <ColorAnimation 
                                            Storyboard.TargetName="BackgroundGradientStop1"
                                            Storyboard.TargetProperty="GradientStop.Color"
                                            To="#FFDCA470" Duration="0" />
                                        <ColorAnimation 
                                            Storyboard.TargetName="BackgroundGradientStop2"
                                            Storyboard.TargetProperty="GradientStop.Color"
                                            To="#FFFC9E45" Duration="0" />
                                        <ColorAnimation 
                                            Storyboard.TargetName="BackgroundGradientStop3"
                                            Storyboard.TargetProperty="GradientStop.Color"
                                            To="#FFF57910" Duration="0" />
                                        <ColorAnimation 
                                            Storyboard.TargetName="BackgroundGradientStop4"
                                            Storyboard.TargetProperty="GradientStop.Color"
                                            To="#FFEF7D31" Duration="0" />
                                        <ColorAnimation 
                                            Storyboard.TargetName="RadialColor"
                                            Storyboard.TargetProperty="GradientStop.Color"
                                            To="#FFFC8A21" Duration="0" />
                                    </Storyboard>
                                </vsm:VisualState>
                                <vsm:VisualState x:Name="Disabled">
                                    <Storyboard>
                                        <DoubleAnimation 
                                                    Storyboard.TargetName="ImagePart" 
                                                    Storyboard.TargetProperty="Opacity" 
                                                    Duration="0" To=".5"/>
                                        <DoubleAnimation 
                                                    Storyboard.TargetName="TextPart" 
                                                    Storyboard.TargetProperty="Opacity" 
                                                    Duration="0" To=".5"/>
                                    </Storyboard>
                                </vsm:VisualState>
                                <vsm:VisualState x:Name="Checked">
                                    <Storyboard>
                                        <ColorAnimation 
                                        Storyboard.TargetName="BorderGradientStop1"
                                        Storyboard.TargetProperty="GradientStop.Color"
                                        To="#FFA78E66" />
                                        <ColorAnimation 
                                        Storyboard.TargetName="BorderGradientStop2"
                                        Storyboard.TargetProperty="GradientStop.Color"
                                        To="#FF9E8255" />
                                        <ColorAnimation 
                                        Storyboard.TargetName="BorderGradientStop3"
                                        Storyboard.TargetProperty="GradientStop.Color"
                                        To="#FFBBAF97" />
                                        <ColorAnimation 
                                        Storyboard.TargetName="BorderHighlightGradientStop1"
                                        Storyboard.TargetProperty="GradientStop.Color"
                                        To="#FFCBB499" />
                                        <ColorAnimation 
                                        Storyboard.TargetName="BorderHighlightGradientStop2"
                                        Storyboard.TargetProperty="GradientStop.Color"
                                        To="#FFF1B25A" />
                                        <ColorAnimation 
                                        Storyboard.TargetName="BorderHighlightGradientStop3"
                                        Storyboard.TargetProperty="GradientStop.Color"
                                        To="#FFEFAB48" />
                                        <ColorAnimation 
                                        Storyboard.TargetName="BorderHighlightGradientStop4"
                                        Storyboard.TargetProperty="GradientStop.Color"
                                        To="#FFFBBA43" />
                                        <ColorAnimation 
                                        Storyboard.TargetName="BackgroundGradientStop1"
                                        Storyboard.TargetProperty="GradientStop.Color"
                                        To="#FFF8DBB7" />
                                        <ColorAnimation 
                                        Storyboard.TargetName="BackgroundGradientStop2"
                                        Storyboard.TargetProperty="GradientStop.Color"
                                        To="#FFFDD48B" />
                                        <ColorAnimation 
                                        Storyboard.TargetName="BackgroundGradientStop3"
                                        Storyboard.TargetProperty="GradientStop.Color"
                                        To="#FFFAB853" />
                                        <ColorAnimation 
                                        Storyboard.TargetName="BackgroundGradientStop4"
                                        Storyboard.TargetProperty="GradientStop.Color"
                                        To="#FFFCBF44" />
                                        <ColorAnimation 
                                        Storyboard.TargetName="RadialColor"
                                        Storyboard.TargetProperty="GradientStop.Color"
                                        To="#FFFDDC82" />
                                    </Storyboard>
                                </vsm:VisualState>
                                <vsm:VisualState x:Name="Focused">
                                    <Storyboard>
                                        <ColorAnimation 
                                        Storyboard.TargetName="BorderGradientStop1"
                                        Storyboard.TargetProperty="GradientStop.Color"
                                        To="#FFDBCE99" />
                                        <ColorAnimation 
                                        Storyboard.TargetName="BorderGradientStop2"
                                        Storyboard.TargetProperty="GradientStop.Color"
                                        To="#FFB59C73" />
                                        <ColorAnimation 
                                        Storyboard.TargetName="BorderGradientStop3"
                                        Storyboard.TargetProperty="GradientStop.Color"
                                        To="#FFBCAB8D" />
                                        <ColorAnimation 
                                        Storyboard.TargetName="BorderHighlightGradientStop1"
                                        Storyboard.TargetProperty="GradientStop.Color"
                                        To="#FFFFFFFB" />
                                        <ColorAnimation 
                                        Storyboard.TargetName="BorderHighlightGradientStop2"
                                        Storyboard.TargetProperty="GradientStop.Color"
                                        To="#FFFFF9E3" />
                                        <ColorAnimation 
                                        Storyboard.TargetName="BorderHighlightGradientStop3"
                                        Storyboard.TargetProperty="GradientStop.Color"
                                        To="#FFFFF2C9" />
                                        <ColorAnimation 
                                        Storyboard.TargetName="BorderHighlightGradientStop4"
                                        Storyboard.TargetProperty="GradientStop.Color"
                                        To="#FFFFF6B9" />
                                        <ColorAnimation 
                                        Storyboard.TargetName="BackgroundGradientStop1"
                                        Storyboard.TargetProperty="GradientStop.Color"
                                        To="#FFFFFEED" />
                                        <ColorAnimation 
                                        Storyboard.TargetName="BackgroundGradientStop2"
                                        Storyboard.TargetProperty="GradientStop.Color"
                                        To="#FFFFEDB8" />
                                        <ColorAnimation 
                                        Storyboard.TargetName="BackgroundGradientStop3"
                                        Storyboard.TargetProperty="GradientStop.Color"
                                        To="#FFFFD842" />
                                        <ColorAnimation 
                                        Storyboard.TargetName="BackgroundGradientStop4"
                                        Storyboard.TargetProperty="GradientStop.Color"
                                        To="#FFFFE47B" />
                                        <ColorAnimation 
                                        Storyboard.TargetName="RadialColor"
                                        Storyboard.TargetProperty="GradientStop.Color"
                                        To="#FFFFE9A4" />
                                    </Storyboard>
                                </vsm:VisualState>
                                <vsm:VisualState x:Name="FocusedChecked">
                                    <Storyboard>
                                        <ColorAnimation 
                                        Storyboard.TargetName="BorderGradientStop1"
                                        Storyboard.TargetProperty="GradientStop.Color"
                                        To="#FF9E8255" />
                                        <ColorAnimation 
                                        Storyboard.TargetName="BorderGradientStop2"
                                        Storyboard.TargetProperty="GradientStop.Color"
                                        To="#FF9E8255" />
                                        <ColorAnimation 
                                        Storyboard.TargetName="BorderGradientStop3"
                                        Storyboard.TargetProperty="GradientStop.Color"
                                        To="#FFD4C5AD" />
                                        <ColorAnimation 
                                        Storyboard.TargetName="BorderHighlightGradientStop1"
                                        Storyboard.TargetProperty="GradientStop.Color"
                                        To="#FFBD8C46" />
                                        <ColorAnimation 
                                        Storyboard.TargetName="BorderHighlightGradientStop2"
                                        Storyboard.TargetProperty="GradientStop.Color"
                                        To="#FFFAD187" />
                                        <ColorAnimation 
                                        Storyboard.TargetName="BorderHighlightGradientStop3"
                                        Storyboard.TargetProperty="GradientStop.Color"
                                        To="#FFFACB7B" />
                                        <ColorAnimation 
                                        Storyboard.TargetName="BorderHighlightGradientStop4"
                                        Storyboard.TargetProperty="GradientStop.Color"
                                        To="#FFFFAD3A" />
                                        <ColorAnimation 
                                        Storyboard.TargetName="BackgroundGradientStop1"
                                        Storyboard.TargetProperty="GradientStop.Color"
                                        To="#FFDEA457" />
                                        <ColorAnimation 
                                        Storyboard.TargetName="BackgroundGradientStop2"
                                        Storyboard.TargetProperty="GradientStop.Color"
                                        To="#FFFCAF59" />
                                        <ColorAnimation 
                                        Storyboard.TargetName="BackgroundGradientStop3"
                                        Storyboard.TargetProperty="GradientStop.Color"
                                        To="#FFF58E2D" />
                                        <ColorAnimation 
                                        Storyboard.TargetName="BackgroundGradientStop4"
                                        Storyboard.TargetProperty="GradientStop.Color"
                                        To="#FFF69C19" />
                                        <ColorAnimation 
                                        Storyboard.TargetName="RadialColor"
                                        Storyboard.TargetProperty="GradientStop.Color"
                                        To="#FFFBAD1A" />
                                    </Storyboard>
                                </vsm:VisualState>
                                <vsm:VisualState x:Name="Unfocused">
                                    <Storyboard>
                                    </Storyboard>
                                </vsm:VisualState>
                            </vsm:VisualStateGroup>
                        </vsm:VisualStateManager.VisualStateGroups>
                        <Border.Background>
                            <LinearGradientBrush EndPoint="0.5, 1" StartPoint="0.5, 0">
                                <GradientStop x:Name="BorderGradientStop1" Color="Transparent" Offset="0"/>
                                <GradientStop x:Name="BorderGradientStop2" Color="Transparent" Offset="0.5"/>
                                <GradientStop x:Name="BorderGradientStop3" Color="Transparent" Offset="1"/>
                            </LinearGradientBrush>
                        </Border.Background>
                        <Border Padding="1,1,1,1" CornerRadius="1" >
                            <Border.Background>
                                <LinearGradientBrush EndPoint="0.5, 1" StartPoint="0.5, 0">
                                    <GradientStop x:Name="BorderHighlightGradientStop1" Color="Transparent" Offset="0"/>
                                    <GradientStop x:Name="BorderHighlightGradientStop2" Color="Transparent" Offset="0.5"/>
                                    <GradientStop x:Name="BorderHighlightGradientStop3" Color="Transparent" Offset="0.5"/>
                                    <GradientStop x:Name="BorderHighlightGradientStop4" Color="Transparent" Offset="1"/>
                                </LinearGradientBrush>
                            </Border.Background>
                            <Border x:Name="BorderBackground">
                                <Border.Background>
                                    <LinearGradientBrush EndPoint="0.5, 1" StartPoint="0.5, 0">
                                        <GradientStop x:Name="BackgroundGradientStop1" Color="Transparent" Offset="0"/>
                                        <GradientStop x:Name="BackgroundGradientStop2" Color="Transparent" Offset="0.45"/>
                                        <GradientStop x:Name="BackgroundGradientStop3" Color="Transparent" Offset="0.45"/>
                                        <GradientStop x:Name="BackgroundGradientStop4" Color="Transparent" Offset="1"/>
                                    </LinearGradientBrush>
                                </Border.Background>
                                <Border Padding="{TemplateBinding Padding}">
                                    <Border.Background>
                                        <RadialGradientBrush GradientOrigin="0.5, 0.72" Center="0.5, 0.85" RadiusX="0.5" RadiusY="0.37">
                                            <GradientStop x:Name="RadialColor" Color="Transparent"/>
                                            <GradientStop Color="Transparent" Offset="1"/>
                                        </RadialGradientBrush>
                                    </Border.Background>
                                    <Grid x:Name="LayoutPart" Background="Transparent" Width="{TemplateBinding Width}" Height="{TemplateBinding Height}">
                                        <Grid.RowDefinitions>
                                            <RowDefinition Height="Auto" />
                                            <RowDefinition Height="Auto" />
                                        </Grid.RowDefinitions>
                                        <Grid.ColumnDefinitions>
                                            <ColumnDefinition Width="Auto" />
                                            <ColumnDefinition Width="Auto" />
                                        </Grid.ColumnDefinitions>
                                        <Image x:Name="ImagePart" Grid.Column="0" Grid.Row="0" Margin="{TemplateBinding ImageMargin}" Source="/Noboru.Windows.Controls;component/images/DefaultToolStripButton.png" HorizontalAlignment="Center" VerticalAlignment="Center" Stretch="None" />
                                        <c:HyperlinkLabel x:Name="TextPart" Grid.Column="1" Grid.Row="0" IsTabStop="False" Margin="{TemplateBinding TextMargin}" HorizontalAlignment="Center" VerticalAlignment="Center" NavigateUri="{TemplateBinding NavigateUri}" TargetName="{TemplateBinding TargetName}" />
                                    </Grid>
                                </Border>
                            </Border>
                        </Border>
                    </Border>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>

    <Style TargetType="c:ToolStripLabel">
        <Setter Property="Foreground" Value="#FF15428B" />
        <Setter Property="IsChecked" Value="false" />
        <Setter Property="ImageMargin" Value="1" />
        <Setter Property="TextMargin" Value="2, 1, 2, 1" />
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="c:ToolStripLabel">
                        <Border x:Name="HighlightPart" Grid.Row="0" Grid.Column="0" Grid.RowSpan="2" Grid.ColumnSpan="2" HorizontalAlignment="Center" VerticalAlignment="Center" CornerRadius="2" Padding="1,1,1,1">
                        <vsm:VisualStateManager.VisualStateGroups>
                            <vsm:VisualStateGroup x:Name="ToolStripLabelCommonStates">
                                <vsm:VisualStateGroup.Transitions>
                                    <vsm:VisualTransition GeneratedDuration="0:0:.3" />
                                </vsm:VisualStateGroup.Transitions>
                                <vsm:VisualState x:Name="Normal">
                                    <Storyboard>
                                    </Storyboard>
                                </vsm:VisualState>
                                <vsm:VisualState x:Name="MouseOver">
                                    <Storyboard>
                                        <ColorAnimation 
                                            Storyboard.TargetName="BorderGradientStop1"
                                            Storyboard.TargetProperty="GradientStop.Color"
                                            To="#FFDBCE99" />
                                        <ColorAnimation 
                                            Storyboard.TargetName="BorderGradientStop2"
                                            Storyboard.TargetProperty="GradientStop.Color"
                                            To="#FFB59C73" />
                                        <ColorAnimation 
                                            Storyboard.TargetName="BorderGradientStop3"
                                            Storyboard.TargetProperty="GradientStop.Color"
                                            To="#FFBCAB8D" />
                                        <ColorAnimation 
                                            Storyboard.TargetName="BorderHighlightGradientStop1"
                                            Storyboard.TargetProperty="GradientStop.Color"
                                            To="#FFFFFFFB" />
                                        <ColorAnimation 
                                            Storyboard.TargetName="BorderHighlightGradientStop2"
                                            Storyboard.TargetProperty="GradientStop.Color"
                                            To="#FFFFF9E3" />
                                        <ColorAnimation 
                                            Storyboard.TargetName="BorderHighlightGradientStop3"
                                            Storyboard.TargetProperty="GradientStop.Color"
                                            To="#FFFFF2C9" />
                                        <ColorAnimation 
                                            Storyboard.TargetName="BorderHighlightGradientStop4"
                                            Storyboard.TargetProperty="GradientStop.Color"
                                            To="#FFFFF6B9" />
                                        <ColorAnimation 
                                            Storyboard.TargetName="BackgroundGradientStop1"
                                            Storyboard.TargetProperty="GradientStop.Color"
                                            To="#FFFFFEED" />
                                        <ColorAnimation 
                                            Storyboard.TargetName="BackgroundGradientStop2"
                                            Storyboard.TargetProperty="GradientStop.Color"
                                            To="#FFFFEDB8" />
                                        <ColorAnimation 
                                            Storyboard.TargetName="BackgroundGradientStop3"
                                            Storyboard.TargetProperty="GradientStop.Color"
                                            To="#FFFFD842" />
                                        <ColorAnimation 
                                            Storyboard.TargetName="BackgroundGradientStop4"
                                            Storyboard.TargetProperty="GradientStop.Color"
                                            To="#FFFFE47B" />
                                        <ColorAnimation 
                                            Storyboard.TargetName="RadialColor"
                                            Storyboard.TargetProperty="GradientStop.Color"
                                            To="#FFFFE9A4" />
                                    </Storyboard>
                                </vsm:VisualState>
                                <vsm:VisualState x:Name="MouseOverChecked">
                                    <Storyboard>
                                        <ColorAnimation 
                                        Storyboard.TargetName="BorderGradientStop1"
                                        Storyboard.TargetProperty="GradientStop.Color"
                                        To="#FF9E8255" />
                                        <ColorAnimation 
                                        Storyboard.TargetName="BorderGradientStop2"
                                        Storyboard.TargetProperty="GradientStop.Color"
                                        To="#FF9E8255" />
                                        <ColorAnimation 
                                        Storyboard.TargetName="BorderGradientStop3"
                                        Storyboard.TargetProperty="GradientStop.Color"
                                        To="#FFD4C5AD" />
                                        <ColorAnimation 
                                        Storyboard.TargetName="BorderHighlightGradientStop1"
                                        Storyboard.TargetProperty="GradientStop.Color"
                                        To="#FFBD8C46" />
                                        <ColorAnimation 
                                        Storyboard.TargetName="BorderHighlightGradientStop2"
                                        Storyboard.TargetProperty="GradientStop.Color"
                                        To="#FFFAD187" />
                                        <ColorAnimation 
                                        Storyboard.TargetName="BorderHighlightGradientStop3"
                                        Storyboard.TargetProperty="GradientStop.Color"
                                        To="#FFFACB7B" />
                                        <ColorAnimation 
                                        Storyboard.TargetName="BorderHighlightGradientStop4"
                                        Storyboard.TargetProperty="GradientStop.Color"
                                        To="#FFFFAD3A" />
                                        <ColorAnimation 
                                        Storyboard.TargetName="BackgroundGradientStop1"
                                        Storyboard.TargetProperty="GradientStop.Color"
                                        To="#FFDEA457" />
                                        <ColorAnimation 
                                        Storyboard.TargetName="BackgroundGradientStop2"
                                        Storyboard.TargetProperty="GradientStop.Color"
                                        To="#FFFCAF59" />
                                        <ColorAnimation 
                                        Storyboard.TargetName="BackgroundGradientStop3"
                                        Storyboard.TargetProperty="GradientStop.Color"
                                        To="#FFF58E2D" />
                                        <ColorAnimation 
                                        Storyboard.TargetName="BackgroundGradientStop4"
                                        Storyboard.TargetProperty="GradientStop.Color"
                                        To="#FFF69C19" />
                                        <ColorAnimation 
                                        Storyboard.TargetName="RadialColor"
                                        Storyboard.TargetProperty="GradientStop.Color"
                                        To="#FFFBAD1A" />
                                    </Storyboard>
                                </vsm:VisualState>
                                <vsm:VisualState x:Name="Pressed">
                                    <Storyboard>
                                        <ColorAnimation 
                                            Storyboard.TargetName="BorderGradientStop1"
                                            Storyboard.TargetProperty="GradientStop.Color"
                                            To="#FF7B6645" Duration="0" />
                                        <ColorAnimation 
                                            Storyboard.TargetName="BorderGradientStop2"
                                            Storyboard.TargetProperty="GradientStop.Color"
                                            To="#FF7B6645" Duration="0" />
                                        <ColorAnimation 
                                            Storyboard.TargetName="BorderGradientStop3"
                                            Storyboard.TargetProperty="GradientStop.Color"
                                            To="#FF7B6645" Duration="0" />
                                        <ColorAnimation 
                                            Storyboard.TargetName="BorderHighlightGradientStop1"
                                            Storyboard.TargetProperty="GradientStop.Color"
                                            To="#FFB2855C" Duration="0" />
                                        <ColorAnimation 
                                            Storyboard.TargetName="BorderHighlightGradientStop2"
                                            Storyboard.TargetProperty="GradientStop.Color"
                                            To="#FFF1963B" Duration="0" />
                                        <ColorAnimation 
                                            Storyboard.TargetName="BorderHighlightGradientStop3"
                                            Storyboard.TargetProperty="GradientStop.Color"
                                            To="#FFED7804" Duration="0" />
                                        <ColorAnimation 
                                            Storyboard.TargetName="BorderHighlightGradientStop4"
                                            Storyboard.TargetProperty="GradientStop.Color"
                                            To="#FFFDAD03" Duration="0" />
                                        <ColorAnimation 
                                            Storyboard.TargetName="BackgroundGradientStop1"
                                            Storyboard.TargetProperty="GradientStop.Color"
                                            To="#FFDCA470" Duration="0" />
                                        <ColorAnimation 
                                            Storyboard.TargetName="BackgroundGradientStop2"
                                            Storyboard.TargetProperty="GradientStop.Color"
                                            To="#FFFC9E45" Duration="0" />
                                        <ColorAnimation 
                                            Storyboard.TargetName="BackgroundGradientStop3"
                                            Storyboard.TargetProperty="GradientStop.Color"
                                            To="#FFF57910" Duration="0" />
                                        <ColorAnimation 
                                            Storyboard.TargetName="BackgroundGradientStop4"
                                            Storyboard.TargetProperty="GradientStop.Color"
                                            To="#FFEF7D31" Duration="0" />
                                        <ColorAnimation 
                                            Storyboard.TargetName="RadialColor"
                                            Storyboard.TargetProperty="GradientStop.Color"
                                            To="#FFFC8A21" Duration="0" />
                                    </Storyboard>
                                </vsm:VisualState>
                                <vsm:VisualState x:Name="Disabled">
                                    <Storyboard>
                                        <DoubleAnimation 
                                                    Storyboard.TargetName="ImagePart" 
                                                    Storyboard.TargetProperty="Opacity" 
                                                    Duration="0" To=".5"/>
                                        <DoubleAnimation 
                                                    Storyboard.TargetName="TextPart" 
                                                    Storyboard.TargetProperty="Opacity" 
                                                    Duration="0" To=".5"/>
                                    </Storyboard>
                                </vsm:VisualState>
                                <vsm:VisualState x:Name="Checked">
                                    <Storyboard>
                                        <ColorAnimation 
                                        Storyboard.TargetName="BorderGradientStop1"
                                        Storyboard.TargetProperty="GradientStop.Color"
                                        To="#FFA78E66" />
                                        <ColorAnimation 
                                        Storyboard.TargetName="BorderGradientStop2"
                                        Storyboard.TargetProperty="GradientStop.Color"
                                        To="#FF9E8255" />
                                        <ColorAnimation 
                                        Storyboard.TargetName="BorderGradientStop3"
                                        Storyboard.TargetProperty="GradientStop.Color"
                                        To="#FFBBAF97" />
                                        <ColorAnimation 
                                        Storyboard.TargetName="BorderHighlightGradientStop1"
                                        Storyboard.TargetProperty="GradientStop.Color"
                                        To="#FFCBB499" />
                                        <ColorAnimation 
                                        Storyboard.TargetName="BorderHighlightGradientStop2"
                                        Storyboard.TargetProperty="GradientStop.Color"
                                        To="#FFF1B25A" />
                                        <ColorAnimation 
                                        Storyboard.TargetName="BorderHighlightGradientStop3"
                                        Storyboard.TargetProperty="GradientStop.Color"
                                        To="#FFEFAB48" />
                                        <ColorAnimation 
                                        Storyboard.TargetName="BorderHighlightGradientStop4"
                                        Storyboard.TargetProperty="GradientStop.Color"
                                        To="#FFFBBA43" />
                                        <ColorAnimation 
                                        Storyboard.TargetName="BackgroundGradientStop1"
                                        Storyboard.TargetProperty="GradientStop.Color"
                                        To="#FFF8DBB7" />
                                        <ColorAnimation 
                                        Storyboard.TargetName="BackgroundGradientStop2"
                                        Storyboard.TargetProperty="GradientStop.Color"
                                        To="#FFFDD48B" />
                                        <ColorAnimation 
                                        Storyboard.TargetName="BackgroundGradientStop3"
                                        Storyboard.TargetProperty="GradientStop.Color"
                                        To="#FFFAB853" />
                                        <ColorAnimation 
                                        Storyboard.TargetName="BackgroundGradientStop4"
                                        Storyboard.TargetProperty="GradientStop.Color"
                                        To="#FFFCBF44" />
                                        <ColorAnimation 
                                        Storyboard.TargetName="RadialColor"
                                        Storyboard.TargetProperty="GradientStop.Color"
                                        To="#FFFDDC82" />
                                    </Storyboard>
                                </vsm:VisualState>
                                <vsm:VisualState x:Name="Focused">
                                    <Storyboard>
                                        <ColorAnimation 
                                        Storyboard.TargetName="BorderGradientStop1"
                                        Storyboard.TargetProperty="GradientStop.Color"
                                        To="#FFDBCE99" />
                                        <ColorAnimation 
                                        Storyboard.TargetName="BorderGradientStop2"
                                        Storyboard.TargetProperty="GradientStop.Color"
                                        To="#FFB59C73" />
                                        <ColorAnimation 
                                        Storyboard.TargetName="BorderGradientStop3"
                                        Storyboard.TargetProperty="GradientStop.Color"
                                        To="#FFBCAB8D" />
                                        <ColorAnimation 
                                        Storyboard.TargetName="BorderHighlightGradientStop1"
                                        Storyboard.TargetProperty="GradientStop.Color"
                                        To="#FFFFFFFB" />
                                        <ColorAnimation 
                                        Storyboard.TargetName="BorderHighlightGradientStop2"
                                        Storyboard.TargetProperty="GradientStop.Color"
                                        To="#FFFFF9E3" />
                                        <ColorAnimation 
                                        Storyboard.TargetName="BorderHighlightGradientStop3"
                                        Storyboard.TargetProperty="GradientStop.Color"
                                        To="#FFFFF2C9" />
                                        <ColorAnimation 
                                        Storyboard.TargetName="BorderHighlightGradientStop4"
                                        Storyboard.TargetProperty="GradientStop.Color"
                                        To="#FFFFF6B9" />
                                        <ColorAnimation 
                                        Storyboard.TargetName="BackgroundGradientStop1"
                                        Storyboard.TargetProperty="GradientStop.Color"
                                        To="#FFFFFEED" />
                                        <ColorAnimation 
                                        Storyboard.TargetName="BackgroundGradientStop2"
                                        Storyboard.TargetProperty="GradientStop.Color"
                                        To="#FFFFEDB8" />
                                        <ColorAnimation 
                                        Storyboard.TargetName="BackgroundGradientStop3"
                                        Storyboard.TargetProperty="GradientStop.Color"
                                        To="#FFFFD842" />
                                        <ColorAnimation 
                                        Storyboard.TargetName="BackgroundGradientStop4"
                                        Storyboard.TargetProperty="GradientStop.Color"
                                        To="#FFFFE47B" />
                                        <ColorAnimation 
                                        Storyboard.TargetName="RadialColor"
                                        Storyboard.TargetProperty="GradientStop.Color"
                                        To="#FFFFE9A4" />
                                    </Storyboard>
                                </vsm:VisualState>
                                <vsm:VisualState x:Name="FocusedChecked">
                                    <Storyboard>
                                        <ColorAnimation 
                                        Storyboard.TargetName="BorderGradientStop1"
                                        Storyboard.TargetProperty="GradientStop.Color"
                                        To="#FF9E8255" />
                                        <ColorAnimation 
                                        Storyboard.TargetName="BorderGradientStop2"
                                        Storyboard.TargetProperty="GradientStop.Color"
                                        To="#FF9E8255" />
                                        <ColorAnimation 
                                        Storyboard.TargetName="BorderGradientStop3"
                                        Storyboard.TargetProperty="GradientStop.Color"
                                        To="#FFD4C5AD" />
                                        <ColorAnimation 
                                        Storyboard.TargetName="BorderHighlightGradientStop1"
                                        Storyboard.TargetProperty="GradientStop.Color"
                                        To="#FFBD8C46" />
                                        <ColorAnimation 
                                        Storyboard.TargetName="BorderHighlightGradientStop2"
                                        Storyboard.TargetProperty="GradientStop.Color"
                                        To="#FFFAD187" />
                                        <ColorAnimation 
                                        Storyboard.TargetName="BorderHighlightGradientStop3"
                                        Storyboard.TargetProperty="GradientStop.Color"
                                        To="#FFFACB7B" />
                                        <ColorAnimation 
                                        Storyboard.TargetName="BorderHighlightGradientStop4"
                                        Storyboard.TargetProperty="GradientStop.Color"
                                        To="#FFFFAD3A" />
                                        <ColorAnimation 
                                        Storyboard.TargetName="BackgroundGradientStop1"
                                        Storyboard.TargetProperty="GradientStop.Color"
                                        To="#FFDEA457" />
                                        <ColorAnimation 
                                        Storyboard.TargetName="BackgroundGradientStop2"
                                        Storyboard.TargetProperty="GradientStop.Color"
                                        To="#FFFCAF59" />
                                        <ColorAnimation 
                                        Storyboard.TargetName="BackgroundGradientStop3"
                                        Storyboard.TargetProperty="GradientStop.Color"
                                        To="#FFF58E2D" />
                                        <ColorAnimation 
                                        Storyboard.TargetName="BackgroundGradientStop4"
                                        Storyboard.TargetProperty="GradientStop.Color"
                                        To="#FFF69C19" />
                                        <ColorAnimation 
                                        Storyboard.TargetName="RadialColor"
                                        Storyboard.TargetProperty="GradientStop.Color"
                                        To="#FFFBAD1A" />
                                    </Storyboard>
                                </vsm:VisualState>
                                <vsm:VisualState x:Name="Unfocused">
                                    <Storyboard>
                                    </Storyboard>
                                </vsm:VisualState>
                            </vsm:VisualStateGroup>
                        </vsm:VisualStateManager.VisualStateGroups>
                        <Border.Background>
                            <LinearGradientBrush EndPoint="0.5, 1" StartPoint="0.5, 0">
                                <GradientStop x:Name="BorderGradientStop1" Color="Transparent" Offset="0"/>
                                <GradientStop x:Name="BorderGradientStop2" Color="Transparent" Offset="0.5"/>
                                <GradientStop x:Name="BorderGradientStop3" Color="Transparent" Offset="1"/>
                            </LinearGradientBrush>
                        </Border.Background>
                        <Border Padding="1,1,1,1" CornerRadius="1" >
                            <Border.Background>
                                <LinearGradientBrush EndPoint="0.5, 1" StartPoint="0.5, 0">
                                    <GradientStop x:Name="BorderHighlightGradientStop1" Color="Transparent" Offset="0"/>
                                    <GradientStop x:Name="BorderHighlightGradientStop2" Color="Transparent" Offset="0.5"/>
                                    <GradientStop x:Name="BorderHighlightGradientStop3" Color="Transparent" Offset="0.5"/>
                                    <GradientStop x:Name="BorderHighlightGradientStop4" Color="Transparent" Offset="1"/>
                                </LinearGradientBrush>
                            </Border.Background>
                            <Border x:Name="BorderBackground">
                                <Border.Background>
                                    <LinearGradientBrush EndPoint="0.5, 1" StartPoint="0.5, 0">
                                        <GradientStop x:Name="BackgroundGradientStop1" Color="Transparent" Offset="0"/>
                                        <GradientStop x:Name="BackgroundGradientStop2" Color="Transparent" Offset="0.45"/>
                                        <GradientStop x:Name="BackgroundGradientStop3" Color="Transparent" Offset="0.45"/>
                                        <GradientStop x:Name="BackgroundGradientStop4" Color="Transparent" Offset="1"/>
                                    </LinearGradientBrush>
                                </Border.Background>
                                <Border Padding="{TemplateBinding Padding}">
                                    <Border.Background>
                                        <RadialGradientBrush GradientOrigin="0.5, 0.72" Center="0.5, 0.85" RadiusX="0.5" RadiusY="0.37">
                                            <GradientStop x:Name="RadialColor" Color="Transparent"/>
                                            <GradientStop Color="Transparent" Offset="1"/>
                                        </RadialGradientBrush>
                                    </Border.Background>
                                    <Grid x:Name="LayoutPart" Background="Transparent" Width="{TemplateBinding Width}" Height="{TemplateBinding Height}">
                                        <Grid.RowDefinitions>
                                            <RowDefinition Height="Auto" />
                                            <RowDefinition Height="Auto" />
                                        </Grid.RowDefinitions>
                                        <Grid.ColumnDefinitions>
                                            <ColumnDefinition Width="Auto" />
                                            <ColumnDefinition Width="Auto" />
                                        </Grid.ColumnDefinitions>
                                        <Image x:Name="ImagePart" Grid.Column="0" Grid.Row="0" Margin="{TemplateBinding ImageMargin}" Source="/Noboru.Windows.Controls;component/images/DefaultToolStripButton.png" HorizontalAlignment="Center" VerticalAlignment="Center" Stretch="None" />
                                        <TextBlock x:Name="TextPart" Grid.Column="1" Grid.Row="0" Margin="{TemplateBinding TextMargin}" HorizontalAlignment="Center" VerticalAlignment="Center" />
                                    </Grid>
                                </Border>
                            </Border>
                        </Border>
                    </Border>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>

    <Style TargetType="c:BusyControl">
        <Setter Property="Width" Value="200" />
        <Setter Property="Height" Value="40" />
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="c:BusyControl">
                    <Canvas x:Name="BackgroundPart" Background="Transparent" Opacity="1" >
                        <vsm:VisualStateManager.VisualStateGroups>
                        </vsm:VisualStateManager.VisualStateGroups>

                        <Canvas x:Name="DialogPart" Height="{TemplateBinding Height}" Width="{TemplateBinding Width}" Background="Transparent" >
                            <Border BorderBrush="#FF027DB8" BorderThickness="2" CornerRadius="4" Background="#FFF2EEEE"  >
                                <Border.Effect>
                                    <DropShadowEffect ShadowDepth="6" BlurRadius="6" Color="#FF413E3E"/>
                                </Border.Effect>
                                <Canvas x:Name="LayoutRoot" Margin="4" Height="{TemplateBinding Height}" Width="{TemplateBinding Width}">
                                    <StackPanel Width="200">
                                        <TextBlock HorizontalAlignment="Left" Foreground="Black" Text="Please wait..." Margin="4,4,0,6" FontWeight="Bold" VerticalAlignment="Center"/>
                                        <ProgressBar Height="10" VerticalAlignment="Bottom" Margin="4,2,4,4" IsIndeterminate="True" SmallChange="0.2"/>
                                    </StackPanel>
                                </Canvas>
                            </Border>
                        </Canvas>
                    </Canvas>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>

</ResourceDictionary>
